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 » Creating menus based on sections

Creating menus based on sections

Creating menus based on sections

Monday 02 February 2004 2:02:09 pm - 2 replies

Sorry if this is question is too basic, but I've spent several hours searching the forums and docs now without success. So here goes:

I have a page with one top menu and one left menu.

In the left menu I'd like to have all folders that belongs to section 9.
The top menu should consist of all folders that does NOT belong to section 9.

Any ideas how I can achieve that?

Best regards
Trond Kvalo
Senior developer
Atlantia as

Monday 02 February 2004 2:34:12 pm

Hey there,
You could do this with fetches and {section show=eq($section_id, 9)} ...blablabla.. etc and {/section}
fetch could for instance be:
{section loop=fetch( content, list, hash( section_id, 9,
class_filter_type, include,
class_filter_array, array( 'folder' ),
sort_by, $node.sort_array }
this may not be totally correct but something like that should work, better check the correct syntax for fetching with section_id's in the docs.


Friday 23 July 2004 6:57:43 pm

I was hoping to do the same and I found a different thread ultimately led to my success.
read the last post by Jan

basically, it tells you to add an attribute_filter which of course, is the section,

However, I found that you had to replace the $node_section_id or whatever it was) with the section you wanted, so in my case, the end result code was:

      {let menuitems=fetch( 'content', 'list', hash( 'parent_node_id', 2,
                                                   'sort_by', $root_node.sort_array, attribute_filter, array( 'and', array( 'section', '=', 1 ) ),
class_filter_type, include,
                                                   class_filter_array, array( 'folder' ) ) )}


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

36 542 Users on board!

Forums menu

Proudly Developed with from