问题
I have a sulu 1.6 installation with multiple webspaces. I have multiple page template definitions in app/Resources/templates/pages
, like default.xml
, homepage.xml
, blog.xml
, center.xml
.
Is it possible to make for example the center.xml
only available for the content of one webspace and not all the others?
UPDATDE: Where can I change this behaviour in the code, that per webspace only the ones are showing up, that are defined in the webspace.xml? This is really blocking and a super bad user experience, since the template is directly linked together with the configured webspace, but the others do not fit.
Thx a lot!
Andreas
回答1:
The template is only shown in the dropdown if its .html.twig
file exists. So if you use the SuluThemeBundle and only a specific theme implements its .html.twig
file the template will not be shown on the other theme aslong as the .html.twig does not exists there.
回答2:
This feature has not yet been implemented, because not too many people have asked for it...
来源:https://stackoverflow.com/questions/53028119/sulu-is-it-possible-to-limit-the-available-page-templates-per-webspace