December 5th, 2012AWM: Is it possible to pass a variable from AllWebMenus to a PHP file?
Knowledge Base support case for AllWebMenus, abstracted and stripped of all user’s private info.
Initial Email From: Eric
Initial Email Subject: Allwebmenus variable
Support Case Month: May 2012
I’m trying to pass a variable to a PHP file from allwebmenus. Is this possible and if so How?
Reply From: Likno Customer Support
Can you please give me some more info regarding your Use Case? Do you only want to pass a parameter from AllWebMenus to a PHP page, or do you also need to pass a different parameter depending on the current PHP page?
For example if you have a link like:
This is passing a parameter to the PHP page. Is the parameter value fixed though, or do you want the parameter value to be determined by the PHP?
If the second applies, then you basically need a “dynamic” menu. There are several different ways to achieve this:
3) Using a UL/LI menu. This is an easy way to have a fully dynamic menu regarding the content (but it does not allow any customizations regarding the style). In a UL/LI menu, the structure, links etc. of the menu are not defined within AllWebMenus, but are instead parsed from a UL/LI structure in the page. Hence you could use PHP to write the UL/LI structure you want every time. For more details on this, please read the related Help section:
Let me know if you need more specific help with something.
Likno Customer Support
Like us on Facebook – Follow us on Twitter