diff --git a/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20Page.xml b/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20Page.xml index 0f1e2e7d3c703ce9fe3a85ab5fff216793afcec4..cf21b551663000abd410484448d2a59fa7d08ef6 100644 --- a/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20Page.xml +++ b/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20Page.xml @@ -98,7 +98,7 @@ </item> <item> <key> <string>init_script</string> </key> - <value> <string></string> </value> + <value> <string>WebPage_init</string> </value> </item> <item> <key> <string>permission</string> </key> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_init.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_init.xml new file mode 100644 index 0000000000000000000000000000000000000000..4259c8743aea1c7d52d21db3cb2358a6b2b6378f --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_init.xml @@ -0,0 +1,143 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>context.setTextFormat(\'text/html\')\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>_getattr_</string> +<string>context</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>WebPage_init</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewAsWeb.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewAsWeb.xml index 89088383494e4125c8dad071c0418a957d1baaf7..0dd2f6622ae9c99aef97662baa986ed390deb78d 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewAsWeb.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewAsWeb.xml @@ -61,7 +61,7 @@ <key> <string>group_list</string> </key> <value> <list> - <string>left webcontent</string> + <string>webcontent header bottom</string> <string>bottom</string> </list> </value> @@ -79,7 +79,7 @@ </value> </item> <item> - <key> <string>left webcontent</string> </key> + <key> <string>webcontent header bottom</string> </key> <value> <list> <string>my_title</string> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewAsWeb/my_title.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewAsWeb/my_title.xml index 00bd7fdf903653b0a0220a07966686abd674131a..e403f9b066eec29500d100d6fa045e5004fa6a20 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewAsWeb/my_title.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewAsWeb/my_title.xml @@ -215,7 +215,7 @@ </item> <item> <key> <string>editable</string> </key> - <value> <int>1</int> </value> + <value> <int>0</int> </value> </item> <item> <key> <string>enabled</string> </key> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getBreadcrumbItemList.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getBreadcrumbItemList.xml index 1369a574df20e199472ec1c658b054d531f9a6fe..6ad4c79a50670afa91d362082c952e376e2c337d 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getBreadcrumbItemList.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getBreadcrumbItemList.xml @@ -127,13 +127,15 @@ crumb_list = []\n \n # Implementation consists in browsing the aq_parent sequence\n while crumb is not None:\n - crumb_list.append(( crumb.getProperty(\'translated_short_title\', None) or crumb.getTranslatedTitleOrId()\n - , crumb\n - ))\n + crumb_list.append((crumb.getProperty(\'translated_short_title\', None) or\\\n + crumb.getProperty(\'translated_title_or_id\', None) or\\\n + crumb.title\n + , crumb\n + ))\n if crumb.getPortalType() == \'Web Site\':\n crumb = None # Don\'t go higher than the first Web Site found\n else:\n - crumb = crumb.getParentValue()\n + crumb = crumb.aq_parent # Acquisition through context\n \n crumb_list.reverse()\n return crumb_list\n diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValue.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValue.xml index 5cca67da91b999e92ef0c15b7880680aaefe826c..e847b30b4fb3ab229967d183c5d423e69af7c484 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValue.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValue.xml @@ -100,11 +100,11 @@ language = portal.Localizer.get_selected_language()\n \n # Search the catalog for all documents matching the reference\n # this will only return documents which are accessible by the user\n -web_page_list = portal_catalog(reference=name, portal_type=valid_portal_type_list, \n - order_by=[(\'index\', \'descending\'), (\'version\', \'descending\')],\n - language=language)\n - # XXX - group_by is missing here\n - # portal_catalog extension required\n +web_page_list = portal_catalog(reference=name, portal_type=valid_portal_type_list,\n + language=language,\n + order_by=[(\'version\', \'descending\')],\n + group_by=(\'reference\',))\n +\n try:\n # Try to get the first page on the list\n web_page = web_page_list[0]\n @@ -112,9 +112,8 @@ try:\n except IndexError:\n # Search again without the language\n web_page_list = portal_catalog(reference=name, portal_type=\'Web Page\', \n - order_by=[(\'index\', \'descending\'), (\'version\', \'descending\')])\n - # XXX - group_by is missing here\n - # portal_catalog extension required\n + order_by=[(\'version\', \'descending\')],\n + group_by=(\'reference\',))\n try:\n # Try to get the first page on the list\n web_page = web_page_list[0]\n diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValueList.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValueList.xml index 754c97d214dfd19ad3ba53504f7546d2af2350fc..c71f504aaa4f55c44b2b1138dd6745202052a7a9 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValueList.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getDocumentValueList.xml @@ -126,6 +126,8 @@ if not kw.has_key(\'validation_state\'):\n \'released\', \'published\', \'restricted\']\n if not kw.has_key(\'order_by\'):\n kw[\'order_by\'] = [(\'int_index\', \'descending\')]\n +#if not kw.has_key(\'group_by\'):\n +# kw[\'group_by\'] = [(\'reference\',)]\n \n # Return the list of matching documents for the given states\n return current_section.searchResults(**kw)\n diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getPermanentURL.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getPermanentURL.xml index f39560a21ce5e04d764a2e73cb0ae4abf1d2130d..fbb9c55b2f72edee675a9177ffa7e2eb6577cd14 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getPermanentURL.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_getPermanentURL.xml @@ -112,9 +112,9 @@ if document.getPortalType() not in valid_portal_type_list:\n return document.absolute_url()\n \n # Return absolute URL if this is not a \'live\' document\n -validation_state=[\'draft\', \'submitted\', \'shared\', # WARNING - this is a copy from WebSection_getDocumentValueList\n - \'released\', \'published\', \'restricted\']\n -if document.getValidationState() not in validation_state:\n +validation_state = [\'draft\', \'submitted\', \'shared\', # WARNING - this is a copy from WebSection_getDocumentValueList\n + \'released\', \'published\', \'restricted\']\n +if not document.getReference() or document.getValidationState() not in validation_state:\n return document.absolute_url()\n \n # Return the URL\n diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb.xml index ccc9ea9fe88c5a248cc900a6eba88330942c1cfd..57af6c81f61c3b4a15ee30e43da64d2e32e3d278 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb.xml @@ -80,7 +80,8 @@ <key> <string>webcontent bottom</string> </key> <value> <list> - <string>my_section_content</string> + <string>my_description</string> + <string>listbox</string> </list> </value> </item> @@ -88,8 +89,7 @@ <key> <string>webcontent header bottom</string> </key> <value> <list> - <string>page_title</string> - <string>page_summary</string> + <string>my_title</string> </list> </value> </item> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/my_section_content.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/listbox.xml similarity index 99% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/my_section_content.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/listbox.xml index cdd9c95c5908d0bf1912856bf93d907d40ec2781..3e534e12fa8134d0cfa80df3c7a08d0f8e155661 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/my_section_content.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/listbox.xml @@ -14,7 +14,7 @@ <dictionary> <item> <key> <string>id</string> </key> - <value> <string>my_section_content</string> </value> + <value> <string>listbox</string> </value> </item> <item> <key> <string>message_values</string> </key> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewRender/my_text_content.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/my_description.xml similarity index 97% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewRender/my_text_content.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/my_description.xml index 43ed60737964b42e7f887fd50948d7f5b3eb93d5..02bbadd072cd297aae45b15cd4350a1fec4d19d7 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewRender/my_text_content.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/my_description.xml @@ -4,8 +4,8 @@ <pickle> <tuple> <tuple> - <string>Products.ERP5Form.EditorField</string> - <string>EditorField</string> + <string>Products.Formulator.StandardFields</string> + <string>TextAreaField</string> </tuple> <none/> </tuple> @@ -14,7 +14,7 @@ <dictionary> <item> <key> <string>id</string> </key> - <value> <string>my_text_content</string> </value> + <value> <string>my_description</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -263,7 +263,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Text Content</string> </value> + <value> <string>Description</string> </value> </item> <item> <key> <string>unicode</string> </key> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/page_title.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/my_title.xml similarity index 92% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/page_title.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/my_title.xml index f4d68992337a34fc973955866014cd9286f12015..38db31604e882a7668b209af18f27e941e28940a 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/page_title.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/my_title.xml @@ -14,7 +14,7 @@ <dictionary> <item> <key> <string>id</string> </key> - <value> <string>page_title</string> </value> + <value> <string>my_title</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -124,9 +124,7 @@ </item> <item> <key> <string>default</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> @@ -201,7 +199,7 @@ </item> <item> <key> <string>default</string> </key> - <value> <string>Current Page Title</string> </value> + <value> <string>Web Section</string> </value> </item> <item> <key> <string>description</string> </key> @@ -265,23 +263,4 @@ </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: here.ERP5Web_getVerboseTitle()</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSiteModule_viewWebSiteList/listbox.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSiteModule_viewWebSiteList/listbox.xml new file mode 100644 index 0000000000000000000000000000000000000000..f453336b2f43ca4582c8f4e1c1c930187c4719d4 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSiteModule_viewWebSiteList/listbox.xml @@ -0,0 +1,571 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Form.ListBox</string> + <string>ListBox</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>listbox</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>all_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>all_editable_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>domain_root_list</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>domain_tree</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>global_attributes</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>list_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>meta_types</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>portal_types</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>report_root_list</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>report_tree</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>search</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>search_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>select</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>sort_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>stat_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>stat_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>url_columns</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>all_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>all_editable_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>domain_root_list</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>domain_tree</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>global_attributes</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>list_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>meta_types</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>portal_types</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>report_root_list</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>report_tree</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>search</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>search_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>select</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>sort_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>stat_columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>stat_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>url_columns</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>Base_viewSearchResultList</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>all_columns</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>all_editable_columns</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>columns</string> </key> + <value> + <list> + <tuple> + <string>id</string> + <string>ID</string> + </tuple> + <tuple> + <string>title</string> + <string>Title</string> + </tuple> + <tuple> + <string>description</string> + <string>Description</string> + </tuple> + <tuple> + <string>webmaster</string> + <string>Webmaster</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>count_method</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default_params</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>domain_root_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>domain_tree</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>editable_columns</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>global_attributes</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>lines</string> </key> + <value> <int>30</int> </value> + </item> + <item> + <key> <string>list_action</string> </key> + <value> <string>list</string> </value> + </item> + <item> + <key> <string>list_cookie</string> </key> + <value> <string>FOLDER_LIST</string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>meta_types</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>page_template</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>portal_types</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>report_root_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>report_tree</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>reverse</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>search</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>search_columns</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>select</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>selection_name</string> </key> + <value> <string>web_site_module_view_web_site_list_selection</string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>sort_columns</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>stat_columns</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>stat_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web Sites</string> </value> + </item> + <item> + <key> <string>url_columns</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <int>40</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.MethodField</string> + <string>Method</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>countFolder</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.MethodField</string> + <string>Method</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>searchFolder</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb.xml index 0363c7a79b4c4f85caa3a6db2c2f095c6481b502..a526c562d12b1a57cf0e46d23d1228db0d6d44c3 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb.xml @@ -80,7 +80,8 @@ <key> <string>webcontent bottom</string> </key> <value> <list> - <string>my_section_content</string> + <string>my_description</string> + <string>listbox</string> </list> </value> </item> @@ -88,8 +89,7 @@ <key> <string>webcontent header bottom</string> </key> <value> <list> - <string>page_title</string> - <string>page_summary</string> + <string>my_title</string> </list> </value> </item> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/my_section_content.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/listbox.xml similarity index 96% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/my_section_content.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/listbox.xml index 1bb91a755971f47965d3eb24d9685665fe709a66..3e534e12fa8134d0cfa80df3c7a08d0f8e155661 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/my_section_content.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/listbox.xml @@ -14,7 +14,7 @@ <dictionary> <item> <key> <string>id</string> </key> - <value> <string>my_section_content</string> </value> + <value> <string>listbox</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -420,10 +420,18 @@ <string>Web Page</string> <string>Web Page</string> </tuple> + <tuple> + <string>Product</string> + <string>Product</string> + </tuple> <tuple> <string>Web Section</string> <string>Web Section</string> </tuple> + <tuple> + <string>Person</string> + <string>Person</string> + </tuple> </list> </value> </item> @@ -453,7 +461,7 @@ </item> <item> <key> <string>selection_name</string> </key> - <value> <string>site_content_selection</string> </value> + <value> <string>section_content_selection</string> </value> </item> <item> <key> <string>sort</string> </key> @@ -479,7 +487,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Site Content</string> </value> + <value> <string>Section Content</string> </value> </item> <item> <key> <string>url_columns</string> </key> @@ -526,7 +534,7 @@ <dictionary> <item> <key> <string>method_name</string> </key> - <value> <string>objectValues</string> </value> + <value> <string>WebSection_getDocumentValueList</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_default_theme/WebSection_viewAsWebDefaultPage/default_content.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/my_description.xml similarity index 92% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_default_theme/WebSection_viewAsWebDefaultPage/default_content.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/my_description.xml index 2ebf8c41c2cd89ffdf8c318c6e3469de2af40228..02bbadd072cd297aae45b15cd4350a1fec4d19d7 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_default_theme/WebSection_viewAsWebDefaultPage/default_content.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/my_description.xml @@ -4,8 +4,8 @@ <pickle> <tuple> <tuple> - <string>Products.ERP5Form.EditorField</string> - <string>EditorField</string> + <string>Products.Formulator.StandardFields</string> + <string>TextAreaField</string> </tuple> <none/> </tuple> @@ -14,7 +14,7 @@ <dictionary> <item> <key> <string>id</string> </key> - <value> <string>default_content</string> </value> + <value> <string>my_description</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -136,9 +136,7 @@ </item> <item> <key> <string>default</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> @@ -265,7 +263,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Default Content</string> </value> + <value> <string>Description</string> </value> </item> <item> <key> <string>unicode</string> </key> @@ -285,23 +283,4 @@ </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: here.WebSite_getDefaultWebPageValue().getTextContent()</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/page_title.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/my_title.xml similarity index 92% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/page_title.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/my_title.xml index e2bc9ee748a358b770c8a05efa10bfe353cdf74c..38db31604e882a7668b209af18f27e941e28940a 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/page_title.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/my_title.xml @@ -14,7 +14,7 @@ <dictionary> <item> <key> <string>id</string> </key> - <value> <string>page_title</string> </value> + <value> <string>my_title</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -124,9 +124,7 @@ </item> <item> <key> <string>default</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> @@ -201,7 +199,7 @@ </item> <item> <key> <string>default</string> </key> - <value> <string>Current Web Site Title</string> </value> + <value> <string>Web Section</string> </value> </item> <item> <key> <string>description</string> </key> @@ -265,23 +263,4 @@ </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: here.ERP5Web_getVerboseTitle()</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewContentList/dynamic_subcontent_listbox.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/listbox.xml similarity index 89% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewContentList/dynamic_subcontent_listbox.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/listbox.xml index ccd14b9641dc386784cae6589f7a47ab95ca457d..d29c177872176d46e2341481fad75e656122ffcb 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewContentList/dynamic_subcontent_listbox.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/listbox.xml @@ -14,7 +14,7 @@ <dictionary> <item> <key> <string>id</string> </key> - <value> <string>dynamic_subcontent_listbox</string> </value> + <value> <string>listbox</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -338,19 +338,15 @@ <value> <list> <tuple> - <string>reference</string> - <string>Reference</string> + <string>id</string> + <string>ID</string> </tuple> <tuple> - <string>short_title</string> - <string>Short Title</string> + <string>title</string> + <string>Title</string> </tuple> <tuple> - <string>translated_validation_state_title</string> - <string>Validation State</string> - </tuple> - <tuple> - <string>translated_portal_type</string> + <string>portal_type</string> <string>Type</string> </tuple> <tuple> @@ -426,11 +422,11 @@ </item> <item> <key> <string>lines</string> </key> - <value> <int>15</int> </value> + <value> <int>10</int> </value> </item> <item> <key> <string>list_action</string> </key> - <value> <string>WebSection_view</string> </value> + <value> <string>Folder_viewContentList</string> </value> </item> <item> <key> <string>list_method</string> </key> @@ -444,22 +440,18 @@ <list/> </value> </item> - <item> - <key> <string>page_template</string> </key> - <value> <string></string> </value> - </item> <item> <key> <string>portal_types</string> </key> <value> <list> - <tuple> - <string>Web Page</string> - <string>Web Page</string> - </tuple> <tuple> <string>Web Section</string> <string>Web Section</string> </tuple> + <tuple> + <string>Web Container</string> + <string>Web Container</string> + </tuple> </list> </value> </item> @@ -494,12 +486,7 @@ <item> <key> <string>sort</string> </key> <value> - <list> - <tuple> - <string>short_title</string> - <string>Short Title</string> - </tuple> - </list> + <list/> </value> </item> <item> @@ -520,33 +507,12 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Dynamic Sub Content</string> </value> + <value> <string>Contents</string> </value> </item> <item> <key> <string>url_columns</string> </key> <value> - <list> - <tuple> - <string>short_title</string> - <string>WebSite_getListboxUrl</string> - </tuple> - <tuple> - <string>translated_validation_state_title</string> - <string>WebSite_getListboxUrl</string> - </tuple> - <tuple> - <string>translated_portal_type</string> - <string>WebSite_getListboxUrl</string> - </tuple> - <tuple> - <string>creation_date</string> - <string>WebSite_getListboxUrl</string> - </tuple> - <tuple> - <string>modification_date</string> - <string>WebSite_getListboxUrl</string> - </tuple> - </list> + <list/> </value> </item> </dictionary> @@ -569,7 +535,7 @@ <dictionary> <item> <key> <string>method_name</string> </key> - <value> <string>WebSection_getDocumentValueList</string> </value> + <value> <string>objectValues</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/page_summary.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_description.xml similarity index 82% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/page_summary.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_description.xml index 60dd0f7758b68799730594550c3d82e04348e2d3..c97f4d723c78b995214bc3024af97910296659ed 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/page_summary.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_description.xml @@ -5,7 +5,7 @@ <tuple> <tuple> <string>Products.Formulator.StandardFields</string> - <string>StringField</string> + <string>TextAreaField</string> </tuple> <none/> </tuple> @@ -14,7 +14,7 @@ <dictionary> <item> <key> <string>id</string> </key> - <value> <string>page_summary</string> </value> + <value> <string>my_description</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -24,13 +24,21 @@ <key> <string>external_validator_failed</string> </key> <value> <string>The input failed the external validator.</string> </value> </item> + <item> + <key> <string>line_too_long</string> </key> + <value> <string>A line was too long.</string> </value> + </item> <item> <key> <string>required_not_found</string> </key> <value> <string>Input is required but no input given.</string> </value> </item> <item> <key> <string>too_long</string> </key> - <value> <string>Too much input was given.</string> </value> + <value> <string>You entered too many characters.</string> </value> + </item> + <item> + <key> <string>too_many_lines</string> </key> + <value> <string>You entered too many lines.</string> </value> </item> </dictionary> </value> @@ -55,14 +63,6 @@ <key> <string>description</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>display_maxwidth</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_width</string> </key> - <value> <string></string> </value> - </item> <item> <key> <string>editable</string> </key> <value> <string></string> </value> @@ -79,6 +79,10 @@ <key> <string>extra</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>hidden</string> </key> <value> <string></string> </value> @@ -88,15 +92,19 @@ <value> <string></string> </value> </item> <item> - <key> <string>required</string> </key> + <key> <string>max_linelength</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>title</string> </key> + <key> <string>max_lines</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>truncate</string> </key> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> <value> <string></string> </value> </item> <item> @@ -107,6 +115,10 @@ <key> <string>whitespace_preserve</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -124,20 +136,10 @@ </item> <item> <key> <string>default</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> - <item> - <key> <string>description</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>display_maxwidth</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_width</string> </key> + <key> <string>description</string> </key> <value> <string></string> </value> </item> <item> @@ -156,6 +158,10 @@ <key> <string>extra</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>hidden</string> </key> <value> <string></string> </value> @@ -165,15 +171,19 @@ <value> <string></string> </value> </item> <item> - <key> <string>required</string> </key> + <key> <string>max_linelength</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>title</string> </key> + <key> <string>max_lines</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>truncate</string> </key> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> <value> <string></string> </value> </item> <item> @@ -184,6 +194,10 @@ <key> <string>whitespace_preserve</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -197,27 +211,19 @@ </item> <item> <key> <string>css_class</string> </key> - <value> <string>summary</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>default</string> </key> - <value> <string>Current web site description.</string> </value> - </item> - <item> - <key> <string>description</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>display_maxwidth</string> </key> + <key> <string>description</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>display_width</string> </key> - <value> <int>20</int> </value> - </item> <item> <key> <string>editable</string> </key> - <value> <int>0</int> </value> + <value> <int>1</int> </value> </item> <item> <key> <string>enabled</string> </key> @@ -231,6 +237,10 @@ <key> <string>extra</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>height</string> </key> + <value> <int>5</int> </value> + </item> <item> <key> <string>hidden</string> </key> <value> <int>0</int> </value> @@ -239,6 +249,14 @@ <key> <string>max_length</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>required</string> </key> <value> <int>0</int> </value> @@ -247,10 +265,6 @@ <key> <string>title</string> </key> <value> <string>Description</string> </value> </item> - <item> - <key> <string>truncate</string> </key> - <value> <int>0</int> </value> - </item> <item> <key> <string>unicode</string> </key> <value> <int>0</int> </value> @@ -259,29 +273,14 @@ <key> <string>whitespace_preserve</string> </key> <value> <int>0</int> </value> </item> + <item> + <key> <string>width</string> </key> + <value> <int>80</int> </value> + </item> </dictionary> </value> </item> </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: here.getDescription()</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_id.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_id.xml new file mode 100644 index 0000000000000000000000000000000000000000..6481d79b1be8b4fc9f7a1c899166eba9cb97b164 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_id.xml @@ -0,0 +1,266 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.StandardFields</string> + <string>StringField</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_id</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>30</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>ID</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/page_summary.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_layout.xml similarity index 91% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/page_summary.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_layout.xml index 81e154e3157fc912c0676aa2b20a8b51b4f280df..6dc2bd64236a44ba638a9b93352f449660cfef80 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/page_summary.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_layout.xml @@ -14,7 +14,7 @@ <dictionary> <item> <key> <string>id</string> </key> - <value> <string>page_summary</string> </value> + <value> <string>my_layout</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -124,9 +124,7 @@ </item> <item> <key> <string>default</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> @@ -197,11 +195,11 @@ </item> <item> <key> <string>css_class</string> </key> - <value> <string>summary</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>default</string> </key> - <value> <string>Current document summary.</string> </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> @@ -217,7 +215,7 @@ </item> <item> <key> <string>editable</string> </key> - <value> <int>0</int> </value> + <value> <int>1</int> </value> </item> <item> <key> <string>enabled</string> </key> @@ -245,7 +243,7 @@ </item> <item> <key> <string>title</string> </key> - <value> <string>Summary</string> </value> + <value> <string>Layout</string> </value> </item> <item> <key> <string>truncate</string> </key> @@ -265,23 +263,4 @@ </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python: here.getDescription()</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_source_title_list.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_source_title_list.xml new file mode 100644 index 0000000000000000000000000000000000000000..fe525e11c94b73d84c879a66a3aa1a87b65d8687 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_source_title_list.xml @@ -0,0 +1,567 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Form.MultiRelationField</string> + <string>MultiRelationStringField</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_source_title_list</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>line_too_long</string> </key> + <value> <string>A line was too long.</string> </value> + </item> + <item> + <key> <string>relation_result_ambiguous</string> </key> + <value> <string>Select appropriate document in the list.</string> </value> + </item> + <item> + <key> <string>relation_result_empty</string> </key> + <value> <string>No such document was found.</string> </value> + </item> + <item> + <key> <string>relation_result_too_long</string> </key> + <value> <string>Too many documents were found.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>You entered too many characters.</string> </value> + </item> + <item> + <key> <string>too_many_lines</string> </key> + <value> <string>You entered too many lines.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>allow_creation</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>allow_jump</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>base_category</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>catalog_index</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default_module</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>jump_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>parameter_list</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>relation_setter_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>allow_creation</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>allow_jump</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>base_category</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>catalog_index</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>columns</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default_module</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>jump_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>parameter_list</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>relation_setter_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>allow_creation</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>allow_jump</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>base_category</string> </key> + <value> <string>source</string> </value> + </item> + <item> + <key> <string>catalog_index</string> </key> + <value> <string>title</string> </value> + </item> + <item> + <key> <string>columns</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>default_module</string> </key> + <value> <string>web_page_module</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra_item</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>first_item</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>jump_method</string> </key> + <value> <string>Base_jumpToRelatedDocument</string> </value> + </item> + <item> + <key> <string>list_method</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>parameter_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> + <list> + <tuple> + <string>Web Page</string> + <string>Web Page</string> + </tuple> + <tuple> + <string>Image</string> + <string>Image</string> + </tuple> + <tuple> + <string>File</string> + <string>File</string> + </tuple> + </list> + </value> + </item> + <item> + <key> <string>relation_setter_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>sort</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Content</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_method</string> </key> + <value> <string>Base_validateRelation</string> </value> + </item> + <item> + <key> <string>view_separator</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<br /> + +]]></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <int>40</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewContentList/my_title.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_title.xml similarity index 100% rename from bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewContentList/my_title.xml rename to bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_title.xml diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_visible.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_visible.xml new file mode 100644 index 0000000000000000000000000000000000000000..29b6daadbd54fe89891a1e2a41c841227c1a7ffd --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewSite/my_visible.xml @@ -0,0 +1,195 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.StandardFields</string> + <string>CheckBoxField</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_visible</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Visible</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.TALESField</string> + <string>TALESMethod</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python:here.isVisible() * \'checked\'</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_default_theme/erp5_web_layout/section_content_list.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_default_theme/erp5_web_layout/section_content_list.xml index 31d4baf1140722232e2d8fdb8ad8fd8870c87b35..f6b1fb3b2af3138509623bd760a2738f82cf38b6 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_default_theme/erp5_web_layout/section_content_list.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_default_theme/erp5_web_layout/section_content_list.xml @@ -299,7 +299,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>here/current_web_section/section_content_render</string> </value> + <value> <string>request/current_web_section/section_content_render</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Base_getAdminToolboxEditShortcutList.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Base_getAdminToolboxEditShortcutList.xml index c68b8f17abe735f2d41456dee9c560078203fd0a..519a0e0cc0c31b35c7a84d19651d83043f42b07c 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Base_getAdminToolboxEditShortcutList.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Base_getAdminToolboxEditShortcutList.xml @@ -84,9 +84,9 @@ translateString = context.Base_translateString\n result = []\n portal_type = context.getPortalType()\n -parent_object = context.getParentValue()\n -parent_pt = parent_object.getPortalType()\n request = context.REQUEST\n +current_web_section = request.current_web_section\n +current_web_section_pt = current_web_section.getPortalType()\n action_dict = request.get(\'actions\', {}) # actions needs to be renamed to action_dict\n exchange_action_list = action_dict.get(\'object_exchange\', [])\n button_action_list = action_dict.get(\'object_button\', [])\n @@ -113,17 +113,15 @@ else: result.append(dict(\n label = "%s Icon" % portal_type,\n ))\n \n -# Append a button to edit the default page\n -\n # Append a button to edit the parent section\n -if portal_type == \'Web Page\' and parent_pt in (\'Web Section\', \'Web Site\'): result.append(dict(\n - url = "%s/view?editable_mode=1" % parent_object.absolute_url(),\n - icon = parent_object.getIcon(),\n - title = translateString("Edit parent ${portal_type}", mapping=dict(portal_type=parent_pt)),\n - label = "%s Icon" % parent_pt,\n +if portal_type not in (\'Web Section\', \'Web Site\'): result.append(dict(\n + url = "%s/view?editable_mode=1" % current_web_section.absolute_url(),\n + icon = current_web_section.getIcon(),\n + title = translateString("Edit parent ${portal_type}", mapping=dict(portal_type=current_web_section_pt)),\n + label = "%s Icon" % current_web_section_pt,\n ))\n \n -# Append a button to open WEBDAV\n +# Append all icon buttons\n for action in button_action_list:\n if action[\'id\'] == \'webdav\':\n result.append(dict(\n @@ -193,9 +191,9 @@ return result\n <string>translateString</string> <string>result</string> <string>portal_type</string> - <string>parent_object</string> - <string>parent_pt</string> <string>request</string> + <string>current_web_section</string> + <string>current_web_section_pt</string> <string>action_dict</string> <string>exchange_action_list</string> <string>button_action_list</string> diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/breadcrumb.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/breadcrumb.xml index 934d204174f9d61bc9de4bc8151b112b7ac8066a..531738a1d894bdf51a9fe77bc69117e9c33754b0 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/breadcrumb.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/breadcrumb.xml @@ -51,7 +51,8 @@ <tal:block replace="nothing"><!--\n This macro is recursive and display lists of lists to display the breadcrumb as a tree.\n TODO: merge it with site map (similar code)\n ---></tal:block>\n +-->\n +</tal:block>\n <tal:block metal:define-macro="renderBreadcrumbItem">\n <ul tal:define="remaining_items remaining_items | nothing"\n tal:condition="remaining_items">\n @@ -65,8 +66,13 @@ </ul>\n </tal:block>\n \n -<!-- Initialize the recursive loop -->\n -<div class="breadcrumb" tal:define="remaining_items python: context.getBreadcrumbItemList(here)">\n +<!-- Initialize the recursive loop starting from context or from web section -->\n +<div class="breadcrumb" tal:define="remaining_items python: here.getBreadcrumbItemList(here)"\n + tal:condition="not:request/is_web_section_default_document">\n + <tal:block metal:use-macro="here/breadcrumb/macros/renderBreadcrumbItem"/>\n +</div>\n +<div class="breadcrumb" tal:define="remaining_items python: here.getBreadcrumbItemList(request.current_web_section)"\n + tal:condition="request/is_web_section_default_document">\n <tal:block metal:use-macro="here/breadcrumb/macros/renderBreadcrumbItem"/>\n </div>\n \n diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/section_content_render.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/section_content_render.xml index 6088c158c3e78c9d9a865df71039d8ed38ef29f8..a3325e439b49def642879d4efbe1a765d3a0950e 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/section_content_render.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/section_content_render.xml @@ -51,13 +51,15 @@ <tal:block replace="nothing"><!--\n This widget display a list of sub documents (Web Pages generally) which\n are published and linked with the current section through Predicate.\n ---></tal:block>\n +-->\n +</tal:block>\n \n -<ul tal:repeat="document python: request.current_web_section.getDocumentValueList()">\n - <li><a tal:attributes="href python: context.getPermanentURL(document)"\n +<ul tal:repeat="document python:here.getDocumentValueList()">\n + <li><a tal:attributes="href python:here.getPermanentURL(document)"\n tal:content="python: document.getProperty(\'translated_short_title\', None)\n or document.getTranslatedTitleOrId()"/></li>\n -</ul> +</ul>\n + ]]></string> </value> </item>