Creating custom menus
From Achievo/ATK Wiki
|
ATK Howto: Creating custom menus
|
I've just started this process myself but some quick notes from what I've learned so far.
The built in menu's are kept in [app]\atk\menu.
The nameing convention is class.atk[menu]menu.inc note that "atk" and "menu" are hard coded into the library and aren't used in settings such as $theme['compatible_menus'] in themedef.inc
The way that a menu is found is in [app]\atk\menu\class.atkmenu.inc layoutToClass()
Things seem a little funky at the moment. First it checks if the setting is a built in menu. (hard coded) and addes the path and "atk" and "menu" to the file string if it is.
Then if the menu isn't a built in one and doesn't have a "." (what it uses for a directory break) it tries to find the menu in [app]\menu\ However, the comment says this is depreciated so I'm not certain where to put the custom menu's but if you have to put the "." in the name to get it to find it somewhere else.
for example:
- [app]\class.custommenu.inc
- themedef.inc $theme['compatible_menus'] = array('.custommenu');
hope any of that makes sense.