Jump to content


Photo

Documentation: menu.xml not fully documented


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:
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

Just realised I placed this in the wrong tracker section. It should be moved to Documentation
Moving to: Documentation