开发者

Can I create a menu with sub-menus in Agile Toolkit?

开发者 https://www.devze.com 2023-04-06 08:26 出处:网络
The menu class documentation - and the provided example - do not seem to show any way for me to build a navigation menu with more than 1 level of navigation.

The menu class documentation - and the provided example - do not seem to show any way for me to build a navigation menu with more than 1 level of navigation.

What do I do if I want to build an 'app-style' menu - like 'File' or 'Edit' - which will include sub-menus? Is there a way to create this automagically with Agile Toolkit, or is this somethi开发者_如何学Cng that would have to be coded by hand with html templates, css files, etc.?


there is no such component by default - however, View "plug'n'play" also works for Menu's

here is one example of real life 2-level submenu: http://www.gradpool.ie/gradmatcher/graduate/company.html?id=38

idea there is that menu is constructed, and drop downs which fall out are yet another menu objects inserted into menu items.


add-on for this purpose has been created, read here: http://www.ambienttech.lv/blog/2012-07-06/tree_view_in_agile_toolkit.html


I would suggest to use your own CSS along with Menu_Light, which is designed to get out of your way as much as possible.

https://github.com/romaninsh/atk4-sitesample/blob/day1/templates/Symisun_01/shared.html https://github.com/romaninsh/atk4-sitesample/blob/day1/lib/Application.php

The only thing it does is adding a class to your menu template, the rest you control over the HTML.

As a result you'll get something like this: http://example.agiletoolkit.org/examples/website/index.symisun

Be sure to use page tag around page names account/register.

0

精彩评论

暂无评论...
验证码 换一张
取 消