Commit 96eada12 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* do not display default page in breadcrumb widget.

* invoke recursive call only if required in navigation widget.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26983 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 012d64a8
......@@ -56,12 +56,13 @@
\n
<tal:block tal:define="current_web_section python:request.get(\'current_web_section\', here);\n
current_web_document python:request.get(\'current_web_document\', here);\n
is_web_section_default_document python:request.get(\'is_web_section_default_document\',False);\n
breadcrumb_list python: current_web_section.getBreadcrumbItemList(current_web_document);">\n
<ul>\n
<li class="nobullet" \n
i18n:translate=""\n
i18n:domain="ui">You are here: </li>\n
<li tal:repeat="breadcrumb breadcrumb_list">\n
<li tal:repeat="breadcrumb python:breadcrumb_list[:(is_web_section_default_document and -1 or None)]">\n
<a href="#" i18n:domain="ui"\n
tal:attributes="href python:breadcrumb[1].absolute_url();" \n
tal:content="python:breadcrumb[0]">Title</a>\n
......
......@@ -63,7 +63,7 @@
<ul metal:define-macro="generateTree">\n
<li tal:repeat="item menu_item/subsection">\n
<a href="#" tal:attributes="href item/url" tal:content="item/translated_title">Menu subitem 1</a>\n
<tal:recurse define="menu_item item">\n
<tal:recurse define="menu_item item" tal:condition="nocall:item/subsection">\n
<metal:call use-macro="here/WebSection_viewNavigationWidget/macros/generateTree" />\n
</tal:recurse>\n
</li>\n
......
87
\ No newline at end of file
88
\ No newline at end of file
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