eZ Community » Forums » eZ Publish 5 Platform » different bundle for different...
expandshrink

different bundle for different siteaccess

different bundle for different siteaccess

Wednesday 27 January 2016 2:39:47 pm - 2 replies

I want specify a different bundle with different design for a different host, but, when i write a pagelayout.html.twig in new bundle, the old host take a new pagelayout.

I define diffenret rwo for all siteaccess in my parmaeters.yml with

ezpublish_legacy.AAAA.view_default_layout: 'OldTestBundle::pagelayout.html.twig'

ezpublish_legacy.BBBB.view_default_layout: 'NewTestBundle::pagelayout.html.twig'

but both host name take NewTestBundle::pagelayout.htmnl.twig.

If specific a different "location_id" for both siteaccess all is OK, but with sameĀ "location_id" not work propertly

There is a way to make this?

Modified on Wednesday 27 January 2016 3:20:58 pm by Pierandrea Della Putta

Wednesday 02 March 2016 2:14:19 pm

Hi ,

take a look here maybe help:

http://share.ez.no/forums/ez-publ...parameters.yml-in-ez-5.3-not-working

Wednesday 02 March 2016 2:34:38 pm

or may be like this:

https://gist.github.com/ramzi-arfaoui/9bf60039e34ec59ce153

I will prefer one bundle for all and design (override) folder for each siteaccess or defined backend classes. May be try to create other bundle if you have a specific feature for one siteaccess like e.g Newslettrer Controller and views.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from