Forums / Install & configuration / Left and Top menu.

Left and Top menu.

Author Message

Endre Solem

Sunday 06 June 2004 5:03:48 am

Hello all.

I have just installed ezPublish 3.4 and must say I like it so fare. Ihave one "problem" that I cant figure out, how do I edit end change the left and top menu?

I want some of the functions I selected at install time to reside in the top menu, and some in the left menu. The best thing would to have a sub menu on the left where I could change the content depending on the selected top menu.

Thanks

Endre

Björn Dieding@xrow.de

Sunday 06 June 2004 4:56:35 pm

check you administration....

setup->menu management

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Endre Solem

Monday 07 June 2004 10:36:22 am

Ok, thanks for the tip, but I have found the menu managment page.
Take a look at this page http://www.ez.no/ez_publish/documentation/customization/components/menus/how_to_customise_menu
I have selected the top and left menu for my site, bu I only want the news link and the products link in the top menu and the home and service link in the left menu, how do I fo that? What files do I need to edit?

Thanks

Endre

Roy Bøhmer

Monday 07 June 2004 12:56:39 pm

Hi!
Look in /design/base/templates/menu. Here you find the template-files for the menus. You should also take a look at menu.ini. By moding (override) the menu.ini and add your own templatefiles you should be able to make your own new impressive menu!

Good luck

Roy

Endre Solem

Tuesday 08 June 2004 12:05:46 am

Thanks again, I'm starting to understand the menu system more and more now.
One ome question, how do I edit the content of the left menu? and not the top menu? Right now they contain the same data, pretty much. Can I use the admin interface to edit the left menu woithoout editing the top menu?

Thanks

Endre

Roy Bøhmer

Tuesday 08 June 2004 3:33:20 pm

No, I wouldn't use the admin interface. Use your favourite editor and edit the file /design/base/templates/menu/sub_left.tpl. I have not tried my self, but I'm pretty sure this is the right file. This templatefile contains the logic and presentation for what the menu contains. (By default it cheks to see where the requested node belong in the node-tree. If its below a certaint level the menu displays all seccond-level nodes.)

To understand the default template these docs might help you:
http://www.ez.no/ez_publish/documentation/customization/custom_design/template_variables_set_by_ezpublish

http://ez.no/ez_publish/documentation/reference/data_fetching/content/list

You probably want to make an override, or - as I suggested in my last post - make your own new menu.

Mark Marsiglio

Tuesday 08 June 2004 9:32:18 pm

I am going to point you in the direction without giving a full answer (sorry) - you need to modify the sub_left.tpl to change the fetch.

You will need to fetch an array that contains the pages that you want to display, either by changing the nodes the are selected, the classes that are selected, or by excluding certain nodes or classes.

There is documentation on specifying this array on this site - I just don't know where to point you at this time.

One more thing - if you are new to eZ learn about the override functionality first. Don't customize the actual sub_left.tpl file, make sure you make a copy in your siteaccess/override/templates/menu folder and mess around with that one.

Good luck...
Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Endre Solem

Wednesday 09 June 2004 10:10:03 am

Thanks for all the replys.
I think I know what to do now.

Endre

eZ debug

Timing: Jan 19 2025 08:22:55
Script start
Timing: Jan 19 2025 08:22:55
Module start 'content'
Timing: Jan 19 2025 08:22:57
Module end 'content'
Timing: Jan 19 2025 08:22:57
Script end

Main resources:

Total runtime1.5295 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.9531180.8359
Module start 'content' 0.00751.3705 769.7891673.6328
Module end 'content' 1.37810.1514 1,443.4219340.4375
Script end 1.5295  1,783.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.2888210.0002
Check MTime0.00180.1184210.0001
Mysql Total
Database connection0.00090.059110.0009
Mysqli_queries1.432193.62632130.0067
Looping result0.00230.14982110.0000
Template Total1.492297.620.7461
Template load0.00220.141520.0011
Template processing1.490097.416620.7450
Template load and register function0.00020.012210.0002
states
state_id_array0.00180.117810.0018
state_identifier_array0.00120.075820.0006
Override
Cache load0.00180.1200460.0000
Sytem overhead
Fetch class attribute can translate value0.00150.098650.0003
Fetch class attribute name0.00110.0729100.0001
XML
Image XML parsing0.00170.113350.0003
class_abstraction
Instantiating content class attribute0.00000.0012100.0000
General
dbfile0.01340.8746320.0004
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs