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

Current menu ID. How to display it

(1/1)

maxxis:
Hi guys

Is there a way to display the menu id of the current page that you are on?

For example in info.php I have menu[3] defined as "support"

How do I detect that 3 in the template?

Is this possible?

I really need a way to do it otherwise Im screwed on the whole menu system. :mrgreen:

Luisehahne:
include the info.php in your template. Thebn you have access to the variables

Dietmar

maxxis:
Thanks

That will give me all the variable yes but how do I detect the menu id of the current page?

aldus:
You can get this info from the $wb-object, e.g.

--- Code: ---<?php

if ($wb->menu_number === 3) echo "call number 3";

?>

--- End code ---

Regards
Aldus

maxxis:
Just figured it out also.

Thanks so much for the help.

I found $wb->page['menu']; to do the trick

Navigation

[0] Message Index

Go to full version