31 lines
1.9 KiB
XML
31 lines
1.9 KiB
XML
<tal:master define="level options/level|python:0; children options/children | nothing;">
|
|
<tal:navitem repeat="node children">
|
|
<li tal:define="show_children node/show_children;
|
|
children node/children;
|
|
item_url node/getURL;
|
|
item_token node/getPath;
|
|
selectable node/selectable;
|
|
li_folder_class python:show_children and ' navTreeFolderish' or '';
|
|
li_selectable_class python:selectable and ' selectable' or '';
|
|
li_collapsed_class python:(len(children) > 0 and show_children) and ' expanded' or ' collapsed';
|
|
li_class string:${li_folder_class}${li_selectable_class}${li_collapsed_class}"
|
|
tal:attributes="class string:navTreeItem visualNoMarker${li_class}">
|
|
<tal:level define="item_class string:contenttype-${node/portal_type}">
|
|
<tal:block define="item_class item_class">
|
|
<a tal:attributes="href item_token; rel level;
|
|
data-intid node/intid;
|
|
title node/Description;
|
|
class string:$item_class">
|
|
<img width="16" height="16" src="++resource++pfwbgedfolder_icon.png" alt=""/>
|
|
<span tal:content="node/Title">Selected Item Title</span>
|
|
</a>
|
|
</tal:block>
|
|
<ul tal:attributes="class python:'navTree navTreeLevel'+str(level)"
|
|
tal:condition="python: len(children) > 0 and show_children">
|
|
<span tal:replace="structure python:view.recurse_template(children=children, level=level+1)" />
|
|
</ul>
|
|
</tal:level>
|
|
</li>
|
|
</tal:navitem>
|
|
</tal:master>
|