Commit d7392ffb authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_xhtml_style: use short title in breadcrumb by default

parent 53475de1
...@@ -195,12 +195,16 @@ for name in relative:\n ...@@ -195,12 +195,16 @@ for name in relative:\n
obj = obj.restrictedTraverse(name)\n obj = obj.restrictedTraverse(name)\n
now.append(name)\n now.append(name)\n
if module:\n if module:\n
try:\n title = (\n
title = obj.getTranslatedTitleOrId()\n getattr(obj, "getTranslatedShortTitle", lambda: None)() or\n
except AttributeError:\n getattr(obj, "getTranslatedTitleOrId", lambda: None)() or\n
title = obj.Title()\n obj.getTitle() or obj.getId()\n
)\n
else:\n else:\n
title = obj.Title()\n title = (\n
getattr(obj, "getShortTitle", lambda: None)() or\n
obj.getTitle() or obj.getId()\n
)\n
if not name == \'talkback\':\n if not name == \'talkback\':\n
result.append( { \'id\' : name\n result.append( { \'id\' : name\n
, \'title\' : title\n , \'title\' : title\n
......
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