Code: Select all
function displayMenu($stags,$etags)
{
global $menu;
$mlist = explode("<br />",$menu);
$num = count($mlist);
for($ix=0;$ix<$num;$ix++)
{
$page = trim($mlist[$ix]);
if(!$page) continue;
if (strncmp($page, "[menu]", 6) == 0 ) {
$page = substr($page, 6);
echo "$stags href='$page'>$page $etags \n";
}
}
}
[menu]Home
[menu]Example
HiddenPage
To access a page that doesn't have a menu entry either use it's URL directly in your browser:
yoursiteaddress/HiddenPage
or use html to link to it from any page:
<a href="yoursiteaddress/HiddenPage>Link to hidden page</a>
It's not particularly elegant way to achieve hidden pages but at least it adds only a few bytes to the code!
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Disclaimer: I know next to nothing about php so if this introduces other issues - don't blame me!!
![Laughing :lol:](./images/smilies/icon_lol.gif)