From 9a9c8f7b411ea6572d07236ac37e98497296b1ed Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Thu, 1 Mar 2007 19:38:10 +0000 Subject: [PATCH] More generic script for hash. Some desciptors in groups for web page. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13163 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_web/WebPage_hashPublicationSectionItemList.xml | 9 ++++----- .../portal_skins/erp5_web/WebPage_view.xml | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_hashPublicationSectionItemList.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_hashPublicationSectionItemList.xml index ccb907e137c..a79a62bd704 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_hashPublicationSectionItemList.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_hashPublicationSectionItemList.xml @@ -71,16 +71,15 @@ <value> <string encoding="cdata"><![CDATA[ """\n - This script repeats publication section items\n + This script repeats publication section category items\n in such way that it is possible to select multiple\n - publication sections for a single web page.\n + publication section categories for the same document\n """\n # Initialise result\n sub_field_list = []\n \n # Maximum size of the MultiListField\n default_sub_field_property_dict.update({\n - \'title\': \'Publication\',\n \'required\': 0,\n \'field_type\': \'ListField\',\n \'size\': 1,\n @@ -96,7 +95,6 @@ for i in range(1):\n z += 1\n sub_field_list.append(new_dict)\n \n -\n section_list = context.getPublicationSectionList()\n section_list.reverse()\n for value in section_list:\n @@ -107,7 +105,7 @@ for value in section_list:\n z += 1\n sub_field_list.append(new_dict)\n \n -new_dict[\'title\'] = \'Publication Section\'\n +new_dict[\'title\'] = default_sub_field_property_dict[\'title\']\n sub_field_list.reverse()\n return sub_field_list\n @@ -171,6 +169,7 @@ return sub_field_list\n <string>context</string> <string>section_list</string> <string>value</string> + <string>_getitem_</string> </tuple> </value> </item> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_view.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_view.xml index f7e329558dc..5f2a352f526 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_view.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_view.xml @@ -63,7 +63,7 @@ <list> <string>left (Page Properties)</string> <string>right (Publication)</string> - <string>center</string> + <string>center (Description)</string> <string>bottom (Content)</string> </list> </value> @@ -81,7 +81,7 @@ </value> </item> <item> - <key> <string>center</string> </key> + <key> <string>center (Description)</string> </key> <value> <list> <string>my_description</string> -- 2.30.9