diff --git a/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/WebSection_viewNewsWidget.xml b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/WebSection_viewNewsWidget.xml new file mode 100644 index 0000000000000000000000000000000000000000..eafb16e6c77a451a14b7bce13e9ef2e5d74f10b8 --- /dev/null +++ b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/WebSection_viewNewsWidget.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Cacheable__manager_id</string> </key> + <value> <string>web_section_ram_cache</string> </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_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<tal:block replace="nothing">\n + <!--\n + This widget displays the list of News.\n +\n + TODO:\n + - maximum number of items should be configurable.\n + - excerpt support is required?\n + -->\n +</tal:block>\n +\n +<tal:block tal:define="web_site python:here.getWebSiteValue();\n + news_area_section_id python:here.getLayoutProperty(\'news_area_section_id\', \'\');\n + news_area_section python:web_site.restrictedTraverse(news_area_section_id)">\n +<ul>\n +<tal:block tal:repeat="item python:news_area_section.getDocumentValueList(limit=10, sort_on=[(\'modification_date\',\'descending\')])">\n + <li><a href="#"\n + tal:attributes="href python:news_area_section.getPermanentURL(item)"\n + tal:content="item/getTitle" /> (<tal:block tal:replace="python:item.getModificationDate().Date()"/>)</li>\n +</tal:block>\n +</ul>\n +</tal:block>\n + + +]]></string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>WebSection_viewNewsWidget</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/WebSection_viewSubsectionWidget.xml b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/WebSection_viewSubsectionWidget.xml index e6eba0e43ac0139b3eccfb0f5dd368f66abb5424..fdeb61bccfb3b1ae2021fb40106ddd114827b6fb 100644 --- a/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/WebSection_viewSubsectionWidget.xml +++ b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/WebSection_viewSubsectionWidget.xml @@ -59,7 +59,7 @@ <ul tal:define="current_web_section python:request.get(\'current_web_section\', here)"\n i18n:translate="" i18n:domain="ui" i18n:attributes="title"\n title="Sections accessible from here.">\n - <li tal:repeat="subsection python:current_web_section.WebSection_getSiteMapTree(depth=1)">\n + <li tal:repeat="subsection python:current_web_section.getSiteMapTree(depth=1)">\n <a href="#" tal:content="subsection/translated_title"\n tal:attributes="href subsection/url">Menu item</a>\n </li>\n diff --git a/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_demo_layout.xml b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_demo_layout.xml index 9ae0fc595e8818c88eae1b7445662e8714f2f490..0fa802c5b8344b7b44475d889a46f8259fad1586 100644 --- a/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_demo_layout.xml +++ b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_demo_layout.xml @@ -67,9 +67,11 @@ <string>navbar navbar-left</string> <string>headline</string> <string>footer</string> + <string>subcontent subcontent-box sidemenu1 (Subsections)</string> + <string>subcontent subcontent-box sidemenu3 (News)</string> + <string>subcontent subcontent-box adminToolbox (Toolbox)</string> <string>subcontent subcontent-box sidemenu1 (4-01a. Side menu 1)</string> <string>subcontent subcontent-box sidemenu2 (4-01b. Side menu 2)</string> - <string>subcontent subcontent-box sidemenu1 (Subsections)</string> <string>subcontent subcontent-box sidemenu3 (4-01c. Side menu 3)</string> <string>subcontent subcontent-box headbox1 (4-02. Box head h1 (with icon))</string> <string>subcontent subcontent-box headbox1noicon (4-03. Box head h1 (no icon))</string> @@ -86,7 +88,6 @@ <string>subcontent subcontent-box documentbox (4-13b. Document)</string> <string>subcontent subcontent-box blogbox (4-13c. Blog)</string> <string>subcontent subcontent-box forumbox (4.13d Forum)</string> - <string>subcontent subcontent-box adminToolbox (Toolbox)</string> </list> </value> </item> @@ -274,6 +275,14 @@ </list> </value> </item> + <item> + <key> <string>subcontent subcontent-box sidemenu3 (News)</string> </key> + <value> + <list> + <string>news_box</string> + </list> + </value> + </item> <item> <key> <string>subcontent subcontent-box tablebox (4-07. Table)</string> </key> <value> diff --git a/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_demo_layout/news_box.xml b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_demo_layout/news_box.xml new file mode 100644 index 0000000000000000000000000000000000000000..4fe4b9948b3df503c7506c3cc379f8f061c47186 --- /dev/null +++ b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_demo_layout/news_box.xml @@ -0,0 +1,139 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>default</string> + <string>editable</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>news_box</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>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</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>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_editor_field</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>News</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>here/WebSection_viewNewsWidget</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_layout.xml b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_layout.xml index cc70b964c951af33eb98f293c4bc93d12ba58634..c176abc8f67650299a6901c8ef9b26d21282c3a3 100644 --- a/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_layout.xml +++ b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_layout.xml @@ -68,6 +68,7 @@ <string>headline</string> <string>footer</string> <string>subcontent subcontent-box sidemenu1 (Subsections)</string> + <string>subcontent subcontent-box sidemenu3 (News)</string> <string>subcontent subcontent-box adminToolbox (Toolbox)</string> </list> </value> @@ -136,6 +137,14 @@ </list> </value> </item> + <item> + <key> <string>subcontent subcontent-box sidemenu3 (News)</string> </key> + <value> + <list> + <string>news_box</string> + </list> + </value> + </item> </dictionary> </value> </item> diff --git a/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_layout/news_box.xml b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_layout/news_box.xml new file mode 100644 index 0000000000000000000000000000000000000000..feb0ea58a1f3d62a75bf6337c20aec8a7ec02417 --- /dev/null +++ b/bt5/erp5_web_multiflex5_theme/SkinTemplateItem/portal_skins/erp5_web_multiflex5_theme/erp5_web_multiflex5_layout/news_box.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>news_box</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>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>news_box</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>erp5_web_multiflex5_demo_layout</string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_multiflex5_theme/bt/maintainer_list b/bt5/erp5_web_multiflex5_theme/bt/maintainer_list index c790c43ed5c861d62e7f0db33f85c692ab4af13a..cbbbc561cc509333155f2778e40b674ed9c74dd5 100644 --- a/bt5/erp5_web_multiflex5_theme/bt/maintainer_list +++ b/bt5/erp5_web_multiflex5_theme/bt/maintainer_list @@ -1,2 +1,3 @@ jps -vincentd \ No newline at end of file +vincentd +kazuhiko \ No newline at end of file diff --git a/bt5/erp5_web_multiflex5_theme/bt/revision b/bt5/erp5_web_multiflex5_theme/bt/revision index 97a55e1d749c6ac7c783778b6ea2d19cb770909d..0aede4a000a9fda5ae3bb7cad217748e1392f17c 100644 --- a/bt5/erp5_web_multiflex5_theme/bt/revision +++ b/bt5/erp5_web_multiflex5_theme/bt/revision @@ -1 +1 @@ -101 \ No newline at end of file +102 \ No newline at end of file