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

Show_Menu2 help

<< < (2/2)

kweitzel:
It looks to me, that there is a break somewhere, maybe a missing single quote (or 1 to many).

cheers

Klaus

Smile:
I dont seem to find anything that means anything to me

<?php show_menu2(1,0,-1,true,'<tr align="left"><td>[a] [menu_title] [/a]</td></tr>','','','','class="mainlevel"','class="mainlevel" id="active_menu"'); ?>

this is all on one line, can any one see a problem.

Thanks

kweitzel:
OK ... you mixed up the functions show_menu and show_menu2 ... this code will work with the standard call of show_menu:


--- Code: ---show_menu(
1,
0,
-1,
true,
'<tr align="left"><td>[a] [menu_title] [/a]</td></tr>',
'',
'',
'',
'class="mainlevel"',
'class="mainlevel" id="active_menu"'
);
--- End code ---

The showmenu2 call has different positions for the various items, in fact it has other variables and options:


--- Code: ---show_menu2(
    $aMenu          = 0,
    $aStart         = SM2_ROOT,
    $aMaxLevel      = SM2_CURR+1,
    $aOptions       = SM2_TRIM,
    $aItemOpen      = '[li][a][menu_title]</a>',
    $aItemClose     = '</li>',
    $aMenuOpen      = '[ul]',
    $aMenuClose     = '</ul>',
    $aTopItemOpen   = false,
    $aTopMenuOpen   = false
    )

--- End code ---

read more about show_menu2 here: http://www.websitebakers.de/sm2/pages/enterprise.php

cheers

Klaus

Smile:
This is a screen shot of the problem



[gelöscht durch Administrator]

kweitzel:
I posted the solution ... no further need for a screenshot ... I will delete it with your next reply.

cheers

Klaus

Navigation

[0] Message Index

[*] Previous page

Go to full version