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 » Issue with pagelayout and "node"
expandshrink

Issue with pagelayout and "node"

Issue with pagelayout and "node"

Wednesday 17 April 2013 5:18:48 pm - 5 replies

Hi all,

I'm trying eZ 5 for the first time, and of course, I have some problems happy.gif Emoticon

I installed the demo bundle, and I created mine.

I changed the ezpublish_legacy.view.default_layout: MyBundle::pagelayout.html.twig in parameters.yml

When I test a "controller" http://local.site/hello/nicolas I can see my twig templates (the view + the pagelayout)

But, if I want to see a "node" : http://local.site/content/view/full/2 or http://local.site/content/view/full/2, it does not work. The extension/ezdemo/design/ezdemo/templates/pagelayout.tpl is used instead of mine.

Any idea ?

Wednesday 17 April 2013 5:31:37 pm

Hi Nicolas

/content/view/<nodeId> URI belongs to the legacy kernel. To get access to raw location view, the new URI is /content/location/<locationId>/<viewType> (view type defaults to full).

Wednesday 17 April 2013 5:59:06 pm

OMG ! So simple... Thank you !

Wednesday 17 April 2013 6:07:34 pm

Note to myself : R better TFM ! https://confluence.ez.no/display/EZP/Content+view

But http://local.site still uses the legacy, even if http://local.site/content/location/2 works fine with the new templates.

Modified on Wednesday 17 April 2013 6:07:56 pm by Nicolas Lescure

Wednesday 17 April 2013 9:01:14 pm

Hello Nicolas,

Check your ezpublish/config/ezpublish.yml file. Your siteaccess should not have "legacy_mode: true".

Else if your configuration file is okay force to reload your web browser cache.. Sometimes its doesn't work well :/

Philippe

Thursday 18 April 2013 8:42:56 am

Perfect! Thanks.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from