Commit ce4e0e42 authored by Jérome Perrin's avatar Jérome Perrin

2008-06-16 jerome

* use getTitle to show title of current document in <title> in view mode.

title_or_id was used, but it was not following the same semantics as getTitle now uses.
Now that getTitle always returns something, we can use getTitle directly.
Note that this is temporary, the plan is to use getTranslatedTitle in view, list and dialog mode and configure correctly on each portal type how translation of title property should behave.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21623 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 23d3e989
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<string>Products.PageTemplates.ZopePageTemplate</string> <tuple/>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -67,7 +64,7 @@ ...@@ -67,7 +64,7 @@
form_action python: form and form.action not in (\'\', None) and portal.portal_membership.checkPermission(\'Modify portal content\', here) and form.action or nothing;\n form_action python: form and form.action not in (\'\', None) and portal.portal_membership.checkPermission(\'Modify portal content\', here) and form.action or nothing;\n
local_parameter_list local_parameter_list | python: {};\n local_parameter_list local_parameter_list | python: {};\n
dummy python: local_parameter_list.update({\'object_uid\': object_uid, \'object_path\': object_path, \'form_id\': form_id});\n dummy python: local_parameter_list.update({\'object_uid\': object_uid, \'object_path\': object_path, \'form_id\': form_id});\n
title python: \'%s - %s\' % (portal.Base_translateString(template.title_or_id()), here.title_or_id());\n title python: \'%s - %s\' % (portal.Base_translateString(template.title_or_id()), here.getTitle());\n
">\n ">\n
<tal:block metal:use-macro="here/main_template/macros/master">\n <tal:block metal:use-macro="here/main_template/macros/master">\n
<tal:block metal:fill-slot="context_bar">\n <tal:block metal:fill-slot="context_bar">\n
......
2008-06-16 jerome
* use getTitle to show title of current document in <title> in view mode.
2008-06-12 ivan 2008-06-12 ivan
* Catch pressed Enter key and submit form for top,right fulltext search input field * Catch pressed Enter key and submit form for top,right fulltext search input field
......
554 556
\ 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