Author Topic

Kevin Myles

Friday 23 July 2004 10:02:25 am

Comment40601

I found this post by Jan very helpful when I wanted to tweak my main menu to only show a particular section in my menu. Of course, it'll work for any fetch.

However i found that I had to replace the $node.object.section_id with the node I wanted, as follows:

      {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' ) ) )}