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] Integrate custom entity into the administration interface #73

Closed
wants to merge 1 commit into from

Conversation

niklasnatter
Copy link
Contributor

@niklasnatter niklasnatter commented Oct 27, 2020

What's in this PR?

This PR demonstrates how to integrate an entity into the administration interface of Sulu. The example implements a simple Event entity that consists of a name, a start-date and an end-date. The entity is persisted using Doctrine and the API for managing the entity is implemented using the FOSRestBundle.

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

Screenshot 2020-10-27 at 16 37 37

To apply the changes, the schema of the database needs to be updated by executing bin/console doctrine:schema:update --force. Furthermore, the permissions for the Event entity need to be added to the User user role via the administration interface.

@alexander-schranz alexander-schranz marked this pull request as draft October 27, 2020 15:36
@alexander-schranz alexander-schranz added the Example Example implementations label Oct 27, 2020
@alexander-schranz alexander-schranz changed the title Integrate custom entity into the administration interface [Example] Integrate custom entity into the administration interface Oct 27, 2020
@niklasnatter niklasnatter force-pushed the example/custom-entity branch from 6e8197d to 7136548 Compare October 28, 2020 13:28
@niklasnatter
Copy link
Contributor Author

Replaced by #84

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.

2 participants