Commit 9d40c586 authored by Ivan Tyagov's avatar Ivan Tyagov

Add non shortened (i.e. full title) to generated breadcrumb list which can be...

Add non shortened (i.e. full title) to generated breadcrumb list which can be used for generating proper a.title HTML attribute.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36090 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6771bb1d
......@@ -140,13 +140,14 @@ for chain_index in xrange(0, chain_list_length):\n
title = None\n
\n
if title is not None:\n
full_title = title\n
# shorten it only if it exceeds maximum specified length or\n
# not last element in breadcrumb (include default Web Page which is not show but part of chain_list)\n
if max_breadcrumb_length is not None and \\\n
(chain_index + last_breadcrumb_offset < chain_list_length) and \\\n
(len(title) - 4 > max_breadcrumb_length):\n
title = \'%s ...\' %(title[:max_breadcrumb_length])\n
crumb_list.append((title, crumb))\n
crumb_list.append((title, crumb, full_title))\n
\n
return crumb_list\n
......@@ -215,6 +216,7 @@ return crumb_list\n
<string>_getitem_</string>
<string>crumb</string>
<string>title</string>
<string>full_title</string>
</tuple>
</value>
</item>
......
959
\ No newline at end of file
960
\ 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