Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Example] Add selection content-type for custom entity #74

Closed

Conversation

niklasnatter
Copy link
Contributor

@niklasnatter niklasnatter commented Oct 30, 2020

What's in this PR?

This PR demonstrates how to add a selection and single_selection content-type for a custom entity. The content-types allow to select one or multiple entities inside of a page template or a form.

Have a look at the Extend Admin UI documentation for more information about the changes in this PR.

Screenshot 2020-10-30 at 16 42 00

This PR builds upon #73. To use the content-types, you need to add a property with the respective type to a page template or a form:

<property name="single_event_selection" type="single_event_selection">
    <meta>
        <title lang="en">Single Event Selection</title>
    </meta>
</property>
<property name="event_selection" type="event_selection">
    <meta>
        <title lang="en">Event Selection</title>
    </meta>
</property>

@alexander-schranz alexander-schranz marked this pull request as draft October 30, 2020 17:01
@niklasnatter
Copy link
Contributor Author

Replaced by #85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant