Commit 225dce61 authored by Fabien Morin's avatar Fabien Morin

In some case (like in TioLive), we want to customise the breadcrumb. Use a...

In some case (like in TioLive), we want to customise the breadcrumb. Use a template for this permit to do that. You just have to overload breadcrumb_render template to customise your breadcrumb.

I run testPerformance on my machine and it appear no signifactive changes in the results, but I will check on unit_test runed by buildbot.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26422 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5aea8867
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block tal:replace="nothing"\n
xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
<tal:block metal:define-macro="breadcrumb">\n
<tal:block tal:repeat="item here/breadcrumbs">\n
<a tal:attributes="href item/url" tal:content="item/title" />\n
/\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>breadcrumb_render</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -119,10 +119,7 @@ IDEAS:\n ...@@ -119,10 +119,7 @@ IDEAS:\n
</div>\n </div>\n
<div id="status">\n <div id="status">\n
<div id="breadcrumb">\n <div id="breadcrumb">\n
<tal:block tal:repeat="item here/breadcrumbs">\n <tal:block metal:use-macro="here/breadcrumb_render/macros/breadcrumb" />\n
<a tal:attributes="href item/url" tal:content="item/title" />\n
/\n
</tal:block>\n
</div>\n </div>\n
<div id="logged_in_as">\n <div id="logged_in_as">\n
<tal:block tal:condition="not: portal/portal_membership/isAnonymousUser">\n <tal:block tal:condition="not: portal/portal_membership/isAnonymousUser">\n
......
703 709
\ No newline at end of file \ 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