WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Hans on November 24, 2007, 07:41:54 AM

Title: Showmenu(2) error log
Post by: Hans on November 24, 2007, 07:41:54 AM
I made a website with showmenu(2) with the YAML132SD template
It has two menu's: one first-level menu and one for the children.
I get error-logs with this kind of information:
Code: [Select]
[24-Nov-2007 09:31:55] show_menu2 error: no flags from group 1 supplied! Exactly one flag is required!
I made two calls:
Code: [Select]
<?php show_menu2(SM2_ALLMENUSM2_ROOTSM2_START); ?>
<?php show_menu2(SM2_ALLMENUSM2_ROOT+1SM2_CURR+1SM2-SIBLING); ?>
Don't know what I did wrong. Please help.
Hans
Title: Re: Showmenu(2) error log
Post by: kweitzel on November 24, 2007, 08:10:54 AM
SM2-SIBLING in the second call needs to be SM2_SIBLING

cheers

Klaus
Title: Re: Showmenu(2) error log
Post by: Hans on November 24, 2007, 06:58:24 PM
Great, thanks Klaus!
Hans
Title: Re: Showmenu(2) error log
Post by: keesweb on February 18, 2008, 03:01:56 PM

Hi, I have the same error...
I'm using: <?php show_menu(1,1,1); ?> and <?php show_menu(1,2,1); ?> in a multilangual site...

I don't understand...

Is there a mistake and a solution???
Title: Re: Showmenu(2) error log
Post by: kweitzel on February 20, 2008, 05:50:55 PM
Where do you get this error?

Anyway, some links to the Helpsite:

Mulitple Menus: http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multiple-menus.php
Multilingual Websites: http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/multilingual-websites.php

cheers

Klaus
Title: Re: Showmenu(2) error log
Post by: keesweb on February 21, 2008, 09:04:40 AM
Thanks,

It was only during the development; now the errors are not shown anymore in the error log.  :-) It's working fine in six languages...