0

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

Andreas
  • 1,691
  • 1
  • 15
  • 34

3 Answers3

2

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.

Alexander Schranz
  • 2,154
  • 2
  • 25
  • 42
  • Mate, what an awesome workaround! Also: if only one page type should be available, it should not be called `default` but something more unique. – Andreas Jan 08 '19 at 16:54
0

This feature has not yet been implemented, because not too many people have asked for it...

Daniel Rotter
  • 1,998
  • 2
  • 16
  • 33
0

Since Sulu 2.0 you can limit the template on the webspace using the exclude-templates inside your webspace configuration:

<excluded-templates>
    <excluded-template>overview</excluded-template>
</excluded-templates>

Before the only way to limit page templates was to work with themes.

Alexander Schranz
  • 2,154
  • 2
  • 25
  • 42