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