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

Last change on this file since 1194 was 1194, checked in by piv, 15 years ago

make viewlet work with portal_actions (though need some fixes yet), add manifest, add css w/o dtml injections, fix settings interface

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