WebsiteBaker Support (2.8.x) > Templates, Menus & Design
show_menu2: valid XHTML and CSS selectable menus
luckyfish:
Is there a way to display specific root-level pages -and their child pages - and nothing else? For example, say I just want to show the "forum" link above - and no other pages. (The navigation for the site I'm developing is very erratic/inconsistent - so I figured I'd style each nav item individually)
I thought this could be accomplished by putting specific page_ids as the $aStart value.
<?php show_menu2(1, 4, 0, SM2_TRIM); ?>
But that doesn't seem to work. I searched the forum but couldn't find anything on this specifically.
Any ideas would be very much appreciated.
Thanks, matt
BerndJM:
Hi,
using the page_id as $aStart should work fine, but - as far as I know - you can't use a numeric value for $aMaxLevel. It should be one of the following:
SM2_ALL - SM2_CURR (+N) - SM2_START (+N) - SM2_START (+N)
Regards Bernd
luckyfish:
Thanks Bernd - I think I have the syntax correct now.
<?php show_menu2(1, 4, SM2_ALL, SM2_TRIM); ?>
But the only output I can get to display are the children of a specific page (4) - not page_id 4 itself. Is there a way to do that?
Thanks - matt
BerndJM:
oh, I see the "problem"
but the manual say at this point:
page_id Display using the specific page as the parent. All
child menus of that page will be displayed.
I have no idea at the moment :|
Maybe you could send a PM to the developer of SM2 ...
Regards Bernd
Peter R:
Hello,
I am experiencing something weird problems with show_menu2, and I have no ideas left.
I want to have my menu look like this:
Home | part1 | part2 | part3
For this, I used:
<?php show_menu2(1, SM2_ROOT, SM2_START, SM2_ALL, ' | [a][menu_title]</a>', '', '', '', '[a][menu_title]</a>'); ?>
Just right out of the textbook.
On the site, everything is under eachother?!?
If I look to the HTML, I have I would say it looks oke? If I put the HTML in frontpage, in design mode it is also oke. In preview mode, it is wrong?!?
What am I doing wrong?
You can find it her: www.tintles. nl
Have fun, like i did...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version