Forums / General / Vertical menu

Vertical menu

Author Message

Espen Ravnanger Aasebø

Saturday 27 January 2007 7:18:07 am

Hello
I am a newbee, and need some help.

I have a webpage; www.wintek.no
There we got a horisontal top menu.
I need to have a vertical menua to the left also. With some information about somthing else. so the two menus( Horisontal and vertical left) shoud not be linked. The vertical should be separete.

Is there any easy way to do this???

Need a quick answer..
Can anyone help me?

Claudia Kosny

Sunday 28 January 2007 1:28:36 pm

Hi there

Enable the lefthand menu (just go in the admin view to the tab design and enable the top + left menu). Create an override for the template for the left menu (which is usually flat_left.tpl) that will display the left menu you need.

Claudia

Espen Ravnanger Aasebø

Monday 29 January 2007 7:12:38 am

Hello claudia

Thanks for the answer

I enabled the top+left menu,

But can you descripe how i overwrite the template:-)

Really appriciate your help..

Claudia Kosny

Monday 29 January 2007 1:59:47 pm

Hi

Just go to the tab design in the admin view and click on the menu entry 'templates' which will show a list of templates. In the top right corner of this nlist you have a field to filter the display, type in 'flat' and click on filter. Now you should see a link to the flat_left.tpl which (as far as I recall) is responsible for displaying the left menu. Click on the link and create an override for your public siteaccess. Once you have created it, you can edit it by clicking on the icon with the pencil (you'll see what I mean once you have created the template).

Claudia

Espen Ravnanger Aasebø

Tuesday 30 January 2007 12:39:12 am

Hello Claudia.

This are the tpl.s that i find whan i type flat:
Mal Designressurs
/toolbar/line/basket.tpl design/standard/templates
/toolbar/full/basket.tpl design/standard/templates
/content/view/embed.tpl design/standard/templates
/content/view/embed-inline.tpl design/standard/templates
/content/advancedsearch.tpl design/admin/templates
/content/search.tpl design/admin/templates
/shop/basket.tpl design/admin/templates
/node/view/plain.tpl design/standard/templates
/node/view/full.tpl design/admin/templates
/node/view/sitemap.tpl design/admin/templates
/node/view/text_linked.tpl design/standard/templates
/node/view/toolline.tpl design/standard/templates
/node/view/execute_pdf.tpl design/standard/templates
/node/view/embed.tpl design/standard/templates
/node/view/text.tpl design/standard/templates
/node/view/objectrelationlist.tpl design/standard/templates
/node/view/search.tpl design/admin/templates
/node/view/pdf.tpl design/standard/templates
/node/view/thumb.tpl design/standard/templates
/node/view/listitem.tpl design/standard/templates
/node/view/line.tpl design/admin/templates
/node/view/embed-inline.tpl design/standard/templates
/pagelayout.tpl design/admin/templates
/setup_pagelayout.tpl design/standard/templates
/fullscreen_pagelayout.tpl design/standard/templates
/print_pagelayout.tpl design/standard/templates
/loginpagelayout.tpl design/admin/templates
/popup_pagelayout.tpl design/standard/templates
/node/view/admin_preview.tpl design/admin/templates
/node/view/browse_thumbnail.tpl design/admin/templates
/node/view/thumbnail.tpl design/admin/templates
/dialog_pagelayout.tpl extension/ezdhtml/design/standard/templates

i cannot find the file named flat_left.tpl

Thanks for your help, i am starting to understand..

Espen Ravnanger Aasebø

Wednesday 31 January 2007 1:11:18 am

Hello
Can anyone help me find the flat_...template ??

see over

thanks

Claudia Kosny

Wednesday 31 January 2007 1:17:13 pm

Hi Espen

sorry for the late answer, I don't have much time at my hands right now.

Normally the flat_left.tpl is in the folder extension\ezwebin\design\ezwebin\templates\menu (eZ 3.9) or in \design\base\templates\menu (eZ 3.8.4). You can also find that out yourself: Enable debug output and the list of used templates (righthand menu in the admin part). Then clear the cache and load the page with the menu again. The you will see the name and the path of the flat_left template in the debug output below your page.

As you should not change the original file but create an override instead you should add something like the following code to the override.ini of your siteaccess. The entry for Source corresponds to the path below the templates folder in your design directory. The entry for Matchfile corresponds to the name of your override template which should be located under the override/template folder of your design directory. If you sort your override templates in folders, specify the name of this folder there as well.

[my_flat_left]
Source=menu/flat_left.tpl
MatchFile=my_flat_left.tpl
Subdir=templates

Create the override template and put in the code for your left menu.

Here another example for creating a manual override: http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_template_override_system/template_override_example

Once you have done that, empty the cache and refresh the page. Now your override for the flat_left.tpl should be used.

You can also do without the overrides and just create your own template with the left menu and then include this template in the pagelayout.tpl using the include function: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/miscellaneous/include
This might actually be the easier solution.

Claudia

Espen Ravnanger Aasebø

Thursday 01 February 2007 11:45:18 am

Hello again Claudia.

I found the flat-left.tpl file
But when click on it ( for creating an override) i dont have access..
It says that the "templatecreate" in module"visual" have been turn of..

How do i turn it on??

Claudia Kosny

Thursday 01 February 2007 12:01:31 pm

Hi Espen

Maybe you should just forget about creating an override for this file although you will need to learn how to create an override sooner or later to make the best out of eZ.

Rather go with my second suggestion and create a new template from scratch. Save this template in the templates folder of your design directory and include it wherever you need it in your pagelayout.tpl using the 'include' function (see the link to the docu in my previous post).

Good luck

Claudia

eZ debug

Timing: Jan 18 2025 11:23:59
Script start
Timing: Jan 18 2025 11:23:59
Module start 'content'
Timing: Jan 18 2025 11:23:59
Module end 'content'
Timing: Jan 18 2025 11:23:59
Script end

Main resources:

Total runtime0.7570 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.5313180.8594
Module start 'content' 0.00570.6050 768.3906557.2500
Module end 'content' 0.61070.1462 1,325.6406341.8203
Script end 0.7569  1,667.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5596210.0002
Check MTime0.00160.2050210.0001
Mysql Total
Database connection0.00060.075410.0006
Mysqli_queries0.670388.55572120.0032
Looping result0.00220.29542100.0000
Template Total0.720295.120.3601
Template load0.00220.292020.0011
Template processing0.717994.839520.3590
Template load and register function0.00020.021710.0002
states
state_id_array0.00100.129710.0010
state_identifier_array0.00130.167020.0006
Override
Cache load0.00220.2841920.0000
Sytem overhead
Fetch class attribute can translate value0.00150.199530.0005
Fetch class attribute name0.00110.139490.0001
XML
Image XML parsing0.00050.068330.0002
class_abstraction
Instantiating content class attribute0.00000.002290.0000
General
dbfile0.00220.2956210.0001
String conversion0.00000.000930.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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs