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

eZ Community » Forums » eZ Publish 5 Platform » Fallback System in eZ Publish 5
expandshrink

Fallback System in eZ Publish 5

Fallback System in eZ Publish 5

Wednesday 10 April 2013 10:15:24 am - 2 replies

Hi,

is there any way to use the fallback system of eZ 4 in eZ 5 without using the legacy mode?

I want to have an extension with different template settings for different siteaccesss.

And each siteaccess should be able to override just the footer.html.twig part of the main template for example, if the file exists. Otherwise the standard template footer.html.twig should be used.

Thanks for your suggestions.

 

--- Edit ---

I found this in the symfony documentation

http://symfony.com/doc/current/cookbook/bundles/inheritance.html

They describe, that i can extend bundles to override some files or to add functionality to existing functions.

Is this the way how i should do it?

When I want to replace some files of the eZDemoBundle for example I would create an own bundle and then extend the eZDemoBundle in my own bundle. After that i could replace some files in my own bundle or extend/ change functionality of the eZDemoBundle.

Modified on Wednesday 10 April 2013 10:52:31 am by Christopher Wiebach

Wednesday 10 April 2013 11:35:27 am

Hello

This is currently not possible unless you use bundle inheritance or global override (in your ezpublish/ folder).

Having this feature implemented in eZ Publish 5 is planned by for example using LiipThemeBundle. Probably in 5.2.

Wednesday 10 April 2013 2:10:20 pm

Thanks for your answer.

I tried the global override in the ezpublish folder and it works.

I found a detailled explanation in the symfony documentation here: http://symfony.com/doc/2.0/book/templating.html#overriding-bundle-templates

The only thing what is missing is to fall back to a longer list than one fallback template. I am looking forward for this feature in a newer version happy.gif Emoticon

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from