WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Cazz on February 14, 2008, 08:14:26 PM

Title: use show_menu2 in a page
Post by: Cazz on February 14, 2008, 08:14:26 PM
Hi
I use show_menu2 in a horizontal menu on my site

But I like to have submenu in a page when I click on a menu that have a submenu

I like to have a list of the submenu.

Is not so easy for me to tell what I like to have but I have you understand :)
Title: Re: use show_menu2 in a page
Post by: DGEC on February 14, 2008, 09:52:51 PM
If you want a DIFFERENT menu, search on "multiple menus".

If you want a drop-down menu, look in the addon/templates section: there are several "drop-down menu" templates there.  The "generic" template works fairly well.
Title: Re: use show_menu2 in a page
Post by: Cazz on February 14, 2008, 10:20:47 PM
Thanks for you fast replay.

I have read about "multiple menus" and maybe is that I looking for.
I know that I dont looking for any "drop-down menu"

I have on my page four links in my menu.
In one of them I have subpages

Page 1
Page 2 > Subpage 1, Subpage 2, Subpage 3......
Page 3
Page 4

The subpage dont show in the menu but when I click on the menu for Page 2 I want to show a list of my subpages

* Subpage 1
* Subpage 2
* Subpage 3
.....


I have this code in my index.php

<?php show_menu2(0SM2_ROOTSM2_STARTSM2_ALL'[a][menu_title]</a>''''''''[a][menu_title]</a>'); ?>

And what I have find out I use this code to list my subpage

<?php show_menu2(0SM2_CURR+1SM2_STARTfalsefalse'<li>'); ?>

but I have no idea how to put that inside "Page 2"
I have try when I create Page 2 that I choose "Code" and past the PHP code inside but nothing happend.
the "Code" maybe can't use PHP code or I have done something wrong :)

Title: Re: use show_menu2 in a page
Post by: ruebenwurzel on February 15, 2008, 07:25:20 AM
Hello,

best is to place the menu call in the index.php of your template at the place where it should appear.

Matthias
Title: Re: use show_menu2 in a page
Post by: Cazz on February 16, 2008, 01:36:47 PM
Hi Matthias
Yes that work very nice :)

I only have one little question.

Can I get so I can have like "order by title" so the menu go after alphabetical order?

or do I have to change the place after I have create a page from my administration area
Title: Re: use show_menu2 in a page
Post by: ruebenwurzel on February 16, 2008, 02:13:09 PM
Hello,

the order in the frontend is the same as in backend. So if you wanna have it ordered alphabetical you have to do this manual by moving up and down the pages in the backend.

Matthias
Title: Re: use show_menu2 in a page
Post by: Cazz on February 16, 2008, 02:28:04 PM
ok thanks for the fast replay