This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » eZ Publish 5 Platform » Link to custom location view

Link to custom location view

Link to custom location view

Friday 22 November 2013 5:07:08 pm - 2 replies


I'm trying to migrate my blog from eZ Publish 4.x mode to eZ Publish 5, without using legacy_mode in front-end.

I have a content type 'category' which displays its sub articles. The full display of my category shows all its sub articles in full display mode, and I want to provide another view (named 'children_list') which displays only their titles.

In eZ Publish 4.X I used something like :

How can I do it in Twig template ?

Modified on Friday 22 November 2013 5:09:25 pm by Valentin Nivuahc

Monday 25 November 2013 10:28:31 am


Of course this is possible, see my example below:

However I'm not sure this is the way I'd go for. I'd rather use a GET or view parameter to distinguish the view type, and override the controller in this case for the template choice.

Monday 25 November 2013 11:27:27 am

Hi Jerome and thx for your response,

It's working with your example !

About overriding the controller, I'm not sure that I understand what you mean.

I added some configuration in my override.yml file :

And my template looks like :

In my controller I have the childrenListCategory() method which displays the template with the list of my articles.

Modified on Monday 25 November 2013 11:28:36 am by Valentin Nivuahc


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

36 542 Users on board!

Forums menu

Proudly Developed with from