WebsiteBaker Support (2.8.x) > Templates, Menus & Design

use show_menu2 in a page

(1/2) > >>

Cazz:
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 :)

DGEC:
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.

Cazz:
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


--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL, &#39;[a][menu_title]</a>&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;, &#39;[a][menu_title]</a>&#39;); ?>
--- End code ---

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


--- Code: ---<?php show_menu2(0, SM2_CURR+1, SM2_START, false, false, &#39;<li>&#39;); ?>
--- End code ---

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 :)

ruebenwurzel:
Hello,

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

Matthias

Cazz:
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

Navigation

[0] Message Index

[#] Next page

Go to full version