source: WAeUP_CMS/trunk/skins/WAEUP/portlet_navtree_macro.pt @ 5060

Last change on this file since 5060 was 17, checked in by Henrik Bettermann, 19 years ago

portlet_navtree_macro.pt added

File size: 2.2 KB
Line 
1<tal:navitem repeat="item options/children">
2<li class="navTreeItem visualNoMarker"
3    tal:define="parent_shows_children options/show_children|nothing;
4                children item/children|nothing;
5                myType item/portal_type;
6                badtypes here/portal_properties/navtree_properties/metaTypesNotToList;
7                "
8               
9
10    tal:condition="python: (not item['no_display']) and (item['currentItem'] or parent_shows_children or children)
11                            and (myType not in badtypes)">
12                           
13
14    <tal:level define="level               options/level|python:0;
15                       item_type_class     python: 'contenttype-' + here.plone_utils.normalizeString(item['portal_type']);
16                       item_wf_state_class python: 'state-' + here.plone_utils.normalizeString(item['review_state']);
17                       isNaviTree          options/isNaviTree | nothing;
18                       ">
19
20    <div tal:attributes="class item_type_class">
21        <a tal:condition="item/currentItem"
22           tal:attributes="href item/absolute_url;
23                           title item/Description|nothing;
24                           class string: $item_wf_state_class navTreeCurrentItem visualIconPadding"
25            tal:content="item/Title|nothing">
26            Selected Item Title</a>
27        <tal:children condition="python: parent_shows_children or children">
28        <a tal:condition="not: item/currentItem"
29           tal:attributes="href item/absolute_url;
30                           title item/Description|nothing;
31                           class string: $item_wf_state_class visualIconPadding;"
32            tal:content="item/Title|nothing">
33            Unselected Item Title</a>
34        </tal:children>
35    </div>
36       
37    <ul tal:attributes="class python:'navTree navTreeLevel'+str(level)"
38        tal:define="show_children item/show_children| python:True;"
39        tal:condition="python: (show_children or isNaviTree) and children"
40        tal:content="structure python:here.portlet_navtree_macro(children=children, level=level+1, show_children=show_children, isNaviTree=isNaviTree)">
41          Get subtree, if available.
42    </ul>
43    </tal:level>
44</li>
45</tal:navitem>
Note: See TracBrowser for help on using the repository browser.