Documentation: menu.xml not fully documented
Submitted peaderfi, Apr 12 2011 07:37 AM | Last updated Apr 12 2011 07:37 AM
In this article: http://community.inv...pplication-r156
menu.xml is not fully documented. Specifically the <condition></condition> tag that can be placed in an <item> tag is not documented at all. I had to go hunting through the code to figure out that you place code in here that is turned into an anonymous function and is evaluated using the following boolean check:
inside a foreach loop which means that by adding
menu.xml is not fully documented. Specifically the <condition></condition> tag that can be placed in an <item> tag is not documented at all. I had to go hunting through the code to figure out that you place code in here that is turned into an anonymous function and is evaluated using the following boolean check:
if( ! $func() )
{
continue;
}inside a foreach loop which means that by adding
<condition> return false;</condition>or similar to an item in your menu.xml you can hide a menu item until a certain set of conditions are met (such as a particular application being installed).
| Status: | Fixed |
| Version: | |
| Fixed In: |











3 Comments