En:Why do I get the error message Menu Sub2 not found?
From phpCMS
Question: Why do I get the error message "Menu Sub2 not found"?
Answer:
If you have a construction like this:
menu.mnu:
MENU: MAIN CLASS; MNAME; LINK; TEXT 00.01; ... 00.02; ... 00.03; ...
MENU: SUB1 CLASS; MNAME; LINK; TEXT 00.01.01; ... 00.01.02; ...
menu.mtpl:
{MAIN.PRE}
{MAIN.NORMAL}
<a href="{LINK}" title="{TEXT}">{MNAME}</a>
{MAIN.AKTIV}
<b><a href="{LINK}" title="{TEXT}">{MNAME}</a></b>
{MAIN.PAST}
{SUB1.PRE}
{SUB1.NORMAL}
<a href="{LINK}" title="{TEXT}">{MNAME}</a>
{SUB1.AKTIV}
<b><a href="{LINK}" title="{TEXT}">{MNAME}</a></b> <br />
{MENU NAME="SUB2"}
{SUB1.PAST}
you may get the error message "Menu Sub2 not found" as soon as you call a page belonging to the SUB1 submenu.
Solution: Turn off debug mode in default.php or the configuration GUI.
Note: As from version 1.2.0 phpCMS has an enhanced debug mode. It discovers an empty MENU tag and warns about it.
It's not a bug, it's a feature!
(From the forum)
Diese Seite in anderen Sprachen: Deutsch
Main Page: FAQ MainPage | Top Page: English FAQ MainPage

