| Mark Emms
                                                                                                                             
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Thursday 01 February 2007 3:04:00 am 
                                                                
                                                                 Hi This is my first site - I am familiar with PHP but need a bit of help to get me going with template customising. 3 part question this one: 1. Top navigation I want to create navigation that allows the choice of 4 sub sites across the top of the page - this is to be displayed throughout the site but the graphics change depending upon the sub site you are in.. I have created 4 content nodes each of which is the top of one of these sub-sites and I've built an override template to display the 4 sub site navigation across the top of the page but need 4 versions of the navigation and want to use the switch operator to distinguish between them but I'm not sure how - all I'm after is the syntax and the operator I'd use to check which node is the level 2 ancestor of the page being viewed.. 2. Left menu navigation This should only display the subtree relating to the sub site being viewed i.e. not displaying level 1 (ez root) or level 2 (the sub site home), but just displaying levels 3 to 5. I have sorted out the presentation css etc now just need the logical bits! 3. I don't want the Exponential "root" node displaying in the breadcrumbs - how do I change that? Help very much appreciated. Many thanks | 
                                                
                                                                                                                                                        
                                                        | Mark Emms
                                                                                                                             | Friday 02 February 2007 2:58:37 am 
                                                                 On Number 2 create an override for leftmenuflat based upon the original file change 
{let docs=treemenu( $module_result.path,
                    is_set( $module_result.node_id )|choose( 2, $module_result.node_id ),
                    ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ),
                    1, 5 )
                    depth=1
                    last_level=0}
to 
{let docs=treemenu( $module_result.path,
                    is_set( $module_result.node_id )|choose( 2, $module_result.node_id ),
                    ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ),
                    2, 5 )
                    depth=1
                    last_level=0}
 |