Commit cdaf4076 authored by Kevin Deldycke's avatar Kevin Deldycke

Much more sementical breadcrumb with hirarchical lists.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10137 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6bdf4d5
...@@ -48,9 +48,25 @@ ...@@ -48,9 +48,25 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<tal:block tal:repeat="b_item python: context.WebSite_getBreadcrumbItemList()">\n <tal:block replace="nothing"><!--\n
&gt; <a tal:attributes="href python: b_item[1].WebSite_getDocumentUrl()"\n This macro is recursive and display lists of lists to display the breadcrumb as a tree.\n
tal:content="python: b_item[0]"/>\n TODO: merge it with site map (similar code)\n
--></tal:block>\n
<tal:block metal:define-macro="renderBreadcrumbItem">\n
<ul tal:define="remaining_items remaining_items | nothing"\n
tal:condition="remaining_items">\n
<li tal:define="current_item python: remaining_items[0];\n
remaining_items python: remaining_items[1:]">\n
<a tal:attributes="href python: current_item[1].WebSite_getDocumentUrl()"\n
tal:content="python: current_item[0]"/>\n
<tal:block metal:use-macro="here/breadcrumb/macros/renderBreadcrumbItem"/>\n
</li>\n
</ul>\n
</tal:block>\n
\n
<!-- Initialize the recursive loop -->\n
<tal:block tal:define="remaining_items python: context.WebSite_getBreadcrumbItemList()">\n
<tal:block metal:use-macro="here/breadcrumb/macros/renderBreadcrumbItem"/>\n
</tal:block> </tal:block>
]]></string> </value> ]]></string> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment