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 » How to determine if ez demo templates...
expandshrink

How to determine if ez demo templates are fetched from legacy or the new stack

How to determine if ez demo templates are fetched from legacy or the new stack

Monday 16 June 2014 9:49:14 pm - 4 replies

How can I determine if templates for a given URI in the eZ demo design are fetched from the new stack or the legacy extension? For instance, the pagelayout appears to be fetched from the new stack, while the blog_post full view template seems to be fetched from the legacy stack, even though there exists both a template for it in the new stack, and a rule for it in ezdemo.yml (referring to the most recent community release).

Monday 16 June 2014 11:12:39 pm

hi. How is your siteaccess called? Asking this because that can make the difference. Let me know.

Tuesday 17 June 2014 8:30:45 am

Using Uri Matching. I'm using the default siteaccess "nor" set up by the setup wizard as a part of choosing Norwegian as the default language.

Tuesday 17 June 2014 8:48:24 am

then i think you're having the same behaviour i explained in https://jira.ez.no/browse/EZP-22839

There i say that by default, ezdemo.yml defines some twig templates overrides but those will only be loaded if your siteaccess is called eng or fre.

It seems to me that if your siteaccess is none of the ones listed in that config setting, twig templates overriding won't take place at all and instead legacy templates will be loaded.

If you add "nor" there, then probably you'll see the twig templates loaded.

As said in the tracker, to me it's a bit weird and i suggest that this setting should be connected to your choose in the install process.

Finally, regarding your question, if you're in dev environment, the symfony toolbar has a ez icon in the right. clicking it will show which twig and wich legacy templates are being used.

Tuesday 17 June 2014 9:56:11 am

Hi Carlos,

You are absolutely right - that did the trick - thanks!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from