Trying to add templates for custom entity #7062
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @AliciaLevasseur, can you specify your usecase more. What kind of things are you trying to build? Do you want to extend a Custom Entity with whole Content Features (includes Templates, Drafting/Publishing, Multilanguage, ...). |
Beta Was this translation helpful? Give feedback.
-
Hello @alexander-schranz , I need an entity to store blogs articles like suluBundleArticle (but it is not compatible with my project : handcraftedinthealps/ElasticsearchBundle#32). but waiting, i need an entity article with type, and for this I would like to use several models. My custom entity(without extend) is link to form for view/create/update details and is multilingual. My usecase is very similar to articleBundle, is it possible with custom entity to have similar result ? |
Beta Was this translation helpful? Give feedback.
You can normally easy downgrade the doctrine/annotations package by and install SuluArticleBundle via:
Alternative to the SuluArticleBundle is a community project here by @TheCadien:
https://github.com/TheCadien/SuluNewsBundle
Adding template behaviour to any
FormView
in Sulu is done via an own structure configuration:https://github.com/sulu/SuluContentBundle/blob/b5c3eeb2e6875437b81febcd8583e9c1400aacaf/Tests/Application/ExampleTestBundle/DependencyInjection/ExampleTestExtension.php#L33-L41
And a type switcher toolbar action: https://github.com/sulu/SuluContentBundle/blob/b5c3eeb2e6875437b81febcd8583e9c1400aacaf/Content/In…