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 » Setup & design » How to call module views within the...

How to call module views within the top menu : request for suggestions

How to call module views within the top menu : request for suggestions

Tuesday 25 October 2011 9:51:57 am - 5 replies


I'd like to add some "entries" in the top menu of my site. These entries should call a view of my own module.

How could I do that in a clean way ? I already did it in a way that works, but I'm not satisfied with the re-usability of my method.

What are your suggestions ?

Tuesday 25 October 2011 1:27:44 pm

If you are just trying to get some data from the module view template to the layout templates (where I suppose that you are rendering your menu), you might try using eZ Publish persistent variables. 

You can check out this blog post that explains some use-cases that might be of help:


Tuesday 25 October 2011 8:13:27 pm

Look at the ggsysinfo extension on to find code that lists all active modules and for each module all views.

Monday 31 October 2011 5:02:06 pm

Are you trying to add a new menu item to your top menu and want that new item to link to a view of your module? If so then you can create a new object of type "Link" under "Home" and the top menu template should pick it up. In the URL of your "Link" object, you just put "/module/view"


Wednesday 02 November 2011 9:23:07 am

Thank you Huy. You perfectly found what I was searching. I didn't saw the line :

{if eq ($item.class_identifier, 'link')}

in file menu/flat_top.tpl.

Wednesday 02 November 2011 11:38:43 am

Also have a look at your menu.ini.append.php that file allows you to add other types of object in the menus.


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

36 542 Users on board!

Forums menu

Proudly Developed with from