Commit ba3f3e4b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

propagate the ignore_layout parameter in breadcrumb links.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26824 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fb56d333
...@@ -180,11 +180,11 @@ ptool = getToolByName(script, \'portal_properties\')\n ...@@ -180,11 +180,11 @@ ptool = getToolByName(script, \'portal_properties\')\n
utool = getToolByName(script, \'portal_url\')\n utool = getToolByName(script, \'portal_url\')\n
portal_url = utool()\n portal_url = utool()\n
result = []\n result = []\n
\n param = int(context.REQUEST.get(\'ignore_layout\', 0)) and \'?ignore_layout:int=1\' or \'\'\n
if include_root:\n if include_root:\n
result.append( { \'id\' : \'root\'\n result.append( { \'id\' : \'root\'\n
, \'title\' : ptool.title()\n , \'title\' : ptool.title()\n
, \'url\' : \'%s/view\' % portal_url\n , \'url\' : \'%s/view%s\' % (portal_url, param)\n
}\n }\n
)\n )\n
\n \n
...@@ -207,7 +207,7 @@ for name in relative:\n ...@@ -207,7 +207,7 @@ for name in relative:\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
, \'url\' : \'%s/%s/view\' % (portal_url, \'/\'.join(now))\n , \'url\' : \'%s/%s/view%s\' % (portal_url, \'/\'.join(now), param)\n
}\n }\n
)\n )\n
module = False\n module = False\n
...@@ -263,8 +263,10 @@ return result\n ...@@ -263,8 +263,10 @@ return result\n
<string>utool</string> <string>utool</string>
<string>portal_url</string> <string>portal_url</string>
<string>result</string> <string>result</string>
<string>int</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>param</string>
<string>relative</string> <string>relative</string>
<string>portal</string> <string>portal</string>
<string>obj</string> <string>obj</string>
......
744 745
\ 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