This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Setup & design » How to replace the demo bundle with...

How to replace the demo bundle with my own?

How to replace the demo bundle with my own?

Monday 05 January 2015 10:42:53 pm - 2 replies

Sorry if this is a dumb question, but being new to ezPublish with some knowledge of Symfony I just can't figure it out.

Using the 2014.11 release, I have disabled the ezDemo bundle and created my own StarCore bundle. Within this bundle I have a pagelayout.html.twig file. How can I configure ezPublish to use this file. Currently the default layout provided by the legacy bundle is being displayed.

In Symfony, we would create a controller with an indexAction method and render from there. Looking at the ezDemo, things are quite different.

The docs, which seem to be aimed at people with previous 4.x experience, are of little help. They use a lot of terminology which I just don't understand.

Am I correct in thinking this is all related to SiteAccess? and if so, how do I use it?

Tuesday 06 January 2015 11:03:36 am

Recently we discussed the same problem:


Did you try to change value of ezpublish_legacy.default.view_default_layout parameter?

Tuesday 06 January 2015 12:13:13 pm

Using that approach, I can't understand why the legacy template is being set. Isn't that for fallback purposes? Besides that, I see that the demo bundle is also setting that parameter, but upon commenting it out, the demo continues to display the correct template.

I'd much rather have the Symfony stack work correctly, that way the legacy templates will indicate that something is not working as intended.

Anyway, after playing about with the demo's source (and I really don't like editing core files) I figured out that it is configured to display the landing_page.html.twig (which extends pagelayout.html.twig). After doing the same in my own bundle, it appears to be working.

Now I just need to figure out how to correctly use SiteAccess (routing?).


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from