Sulu: Is it possible to limit the available page templates per webspace?

早过忘川 提交于 2021-01-29 05:28:42

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!