source: products/quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/templates/sections_recurse.pt @ 3631

Last change on this file since 3631 was 3631, checked in by kroman0, 11 years ago

Added ids for navigation

  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
1<tal:master define="level options/level|python:0;
2                    children options/children | nothing;
3                    plonefour view/is_plone_four"
4            i18n:domain="plone"
5    ><metal:main define-macro="sections_main"
6        ><tal:navitem repeat="node children"
7            ><li tal:define="is_current      node/currentItem;
8                             is_in_path      node/currentParent;
9                             li_id           string:portaltab-${node/id}-level$level;
10                             li_curr_class   python:is_current and 'selected' or '';
11                             li_extr_class   python:(is_in_path and not is_current) and 'selected' or '';
12                             li_extr_class   python:(not (is_in_path or is_current)) and li_extr_class + 'plain' or li_extr_class;
13                             li_class string:${li_curr_class}${li_extr_class};
14                             li_class python:li_class or nothing"
15                 tal:attributes="class li_class; id li_id"
16                ><tal:level define="show_children node/show_children;
17                            children node/children;
18                            show_icons view/conf/show_icons;
19                            item_icon node/item_icon;
20                            item_type node/normalized_portal_type | nothing;
21                            a_class python:children and 'hasChildrens' or nothing"
22                    ><a tal:attributes="href node/getURL;
23                                        title node/Description|nothing;
24                                        class a_class"
25                        ><img tal:condition="python: show_icons and not plonefour"
26                              tal:replace="structure item_icon/html_tag | nothing"
27                        /><span tal:content="node/Title"
28                                tal:attributes="class python: plonefour and show_icons and item_type and 'contenttype-'+ item_type or nothing"
29                            >Selected Item Title</span
30                        ></a
31                    ><ul tal:attributes="class string:globalSectionsLevel$level"
32                         tal:condition="python: len(children) > 0 and show_children"
33                        ><li tal:replace="structure python:view.recurse(children=children, level=level+1)"
34                            >SubMenu</li
35                        ></ul
36                    ></tal:level
37                ></li
38            ></tal:navitem
39        ></metal:main
40    ></tal:master
41>
Note: See TracBrowser for help on using the repository browser.