Create a second list of vertical menus

Author Message

vilaysith thierry

Friday 13 March 2009 9:01:21 am

Hello :)

I would create a second list of menu navigation.

How could this be done?

Thank you for your help :)

justin kazadi

Friday 13 March 2009 10:23:47 am

Hi,
Can you please be very clear?

but if you want to create an navigation menu try this:

{def $menu_item=fetch(content,list,hash(parent_node_id,2,
                                                           sort_by,array('priority',false()),
                                                           limit,your_number_of_item,
                                                           class_filter_type,include,
                                                           class_filter_array,array('your_desired_class1',...,'your_desired_class_n')
                                                           )
                                        )
                  
                   <ul>
                   {foreach $menu_item as $element}
         
                       
                          <li><a href={$element.url_alias|ezurl()}>{$element.name|wash()}</a></li>
                      
                   {/foreach}{undef $menu_item}
               </ul>

replace parent_node_id, 2 by your desired parent node_id

i think this can help you

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:32:02
Script start
Timing: Jan 18 2025 19:32:02
Module start 'layout'
Timing: Jan 18 2025 19:32:02
Module start 'content'
Timing: Jan 18 2025 19:32:02
Module end 'content'
Timing: Jan 18 2025 19:32:02
Script end

Main resources:

Total runtime0.0119 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1641152.6406
Module start 'layout' 0.00550.0015 741.804739.4766
Module start 'content' 0.00700.0034 781.281389.4609
Module end 'content' 0.01030.0015 870.742230.3047
Script end 0.0119  901.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002218.5803140.0002
Check MTime0.00118.9521140.0001
Mysql Total
Database connection0.00064.988610.0006
Mysqli_queries0.001512.630930.0005
Looping result0.00000.084210.0000
Template Total0.001310.710.0013
Template load0.00075.857110.0007
Template processing0.00064.778010.0006
Override
Cache load0.00053.945510.0005
General
dbfile0.00022.019980.0000
String conversion0.00000.050140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs