Commit eb3cb389 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make subsection widget configurable.

make sitemap depth configurable.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28724 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 63f7ead3
...@@ -64,9 +64,9 @@ ...@@ -64,9 +64,9 @@
<list> <list>
<string>left (Color)</string> <string>left (Color)</string>
<string>right (Size)</string> <string>right (Size)</string>
<string>left (Fonts)</string> <string>left (Fonts and Images)</string>
<string>right (Images)</string> <string>right (Widgets)</string>
<string>center (Sections)</string> <string>center (Information)</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -75,15 +75,12 @@ ...@@ -75,15 +75,12 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>center (Sections)</string> </key> <key> <string>center (Information)</string> </key>
<value> <value>
<list> <list>
<string>my_layout_header_title</string> <string>my_layout_header_title</string>
<string>my_layout_header_motto</string> <string>my_layout_header_motto</string>
<string>my_layout_copyright_message</string> <string>my_layout_copyright_message</string>
<string>my_layout_search_area_section_id</string>
<string>my_layout_news_area_section_id</string>
<string>my_layout_sitemap_section_id</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -102,17 +99,10 @@ ...@@ -102,17 +99,10 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>left (Fonts)</string> </key> <key> <string>left (Fonts and Images)</string> </key>
<value> <value>
<list> <list>
<string>my_layout_font_list</string> <string>my_layout_font_list</string>
</list>
</value>
</item>
<item>
<key> <string>right (Images)</string> </key>
<value>
<list>
<string>my_layout_site_logo</string> <string>my_layout_site_logo</string>
<string>my_layout_header_background_image</string> <string>my_layout_header_background_image</string>
<string>my_layout_page_top_background_image</string> <string>my_layout_page_top_background_image</string>
...@@ -137,6 +127,20 @@ ...@@ -137,6 +127,20 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>right (Widgets)</string> </key>
<value>
<list>
<string>my_layout_subsection</string>
<string>my_layout_subsection_depth</string>
<string>my_layout_subsection_style</string>
<string>my_layout_search_area_section_id</string>
<string>my_layout_news_area_section_id</string>
<string>my_layout_sitemap_section_id</string>
<string>my_layout_sitemap_depth</string>
</list>
</value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <int>1</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>external_validator</string> </key>
...@@ -280,8 +280,7 @@ ...@@ -280,8 +280,7 @@
<key> <string>view_separator</string> </key> <key> <string>view_separator</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<br />\n <br />
]]></string> </value> ]]></string> </value>
</item> </item>
......
<?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>display_width</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_layout_sitemap_depth</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>display_width</string> </key>
<value> <int>20</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_integer_value</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>Sitemap Depth</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>items</string>
<string>orientation</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_layout_subsection</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>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>orientation</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>field_id</string> </key>
<value> <string>my_radio_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>orientation</string> </key>
<value> <string>horizontal</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>Subsection</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>python:((\'Acquire\', \'\'), (\'Display\', 1), (\'Hide\', 0))</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>display_width</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_layout_subsection_depth</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>display_width</string> </key>
<value> <int>20</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_integer_value</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>Subsection Depth</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>items</string>
<string>orientation</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_layout_subsection_style</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>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>orientation</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>field_id</string> </key>
<value> <string>my_radio_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>orientation</string> </key>
<value> <string>horizontal</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>Subsection Style</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>python:((\'Acquire\', \'\'), (\'Table\', \'sidemenu1\'), (\'List\', \'sidemenu3\'))</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -43,32 +43,9 @@ ...@@ -43,32 +43,9 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<tal:block replace="nothing">\n <tal:block tal:define="sitemap_root python:request.get(\'current_web_site\', here);\n
<!--\n depth python:here.getLayoutProperty(\'layout_sitemap_depth\', 5)">\n
This widget is quite similar to WebSection_viewNavigationWidget, but this does not contain\n <tal:block metal:use-macro="here/sitemap_renderer/macros/master" />\n
any IE6-only hack, but just uses normal unordered lists.\n
-->\n
</tal:block>\n
\n
<tal:block tal:define="current_web_site python:request.get(\'current_web_site\', here);\n
menu_item_list python:current_web_site.WebSection_getSiteMapTree(depth=3);\n
web_site_url python:current_web_site.absolute_url()">\n
<ul>\n
<li tal:repeat="menu_item menu_item_list">\n
<tal:block tal:condition="not:nocall:menu_item/subsection"><a tal:attributes="href menu_item/url" tal:content="menu_item/translated_title">Menu</a></tal:block>\n
<tal:block tal:condition="nocall:menu_item/subsection">\n
<a tal:attributes="href menu_item/url"><tal:block tal:replace="menu_item/translated_title">Drop-down Menu</tal:block></a>\n
<ul metal:define-macro="generateTree">\n
<li tal:repeat="item menu_item/subsection">\n
<a href="#" tal:attributes="href item/url" tal:content="item/translated_title">Menu subitem 1</a>\n
<tal:recurse define="menu_item item" tal:condition="nocall:item/subsection">\n
<metal:call use-macro="here/WebSection_viewNavigationWidget/macros/generateTree" />\n
</tal:recurse>\n
</li>\n
</ul>\n
</tal:block>\n
</li>\n
</ul>\n
</tal:block>\n </tal:block>\n
......
...@@ -43,27 +43,11 @@ ...@@ -43,27 +43,11 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<tal:block replace="nothing">\n <tal:block tal:define="sitemap_root python:request.get(\'current_web_section\', here);\n
<!--\n depth python:here.getLayoutProperty(\'layout_subsection_depth\', 1)">\n
This widget displays the list of Sections contained in the current context.\n <tal:block metal:use-macro="here/sitemap_renderer/macros/master" />\n
\n
TODO:\n
- make sure translation is possible\n
- make sure URLs are correct\n
- use generic method (erp5_web) to retrieve the list of subsections\n
- make it hierarchic\n
-->\n
</tal:block>\n </tal:block>\n
\n
\n
<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.getSiteMapTree(depth=1)">\n
<a href="#" tal:content="subsection/translated_title"\n
tal:attributes="href subsection/url">Menu item</a>\n
</li>\n
</ul>
]]></string> </value> ]]></string> </value>
</item> </item>
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<string>navbar navbar-left</string> <string>navbar navbar-left</string>
<string>headline</string> <string>headline</string>
<string>footer</string> <string>footer</string>
<string>subcontent subcontent-box sidemenu1 (Subsections)</string> <string>subcontent subcontent-box (Subsections)</string>
<string>subcontent subcontent-box sidemenu3 (News)</string> <string>subcontent subcontent-box sidemenu3 (News)</string>
<string>subcontent subcontent-box adminToolbox (Toolbox)</string> <string>subcontent subcontent-box adminToolbox (Toolbox)</string>
<string>subcontent subcontent-box sidemenu1 (4-01a. Side menu 1)</string> <string>subcontent subcontent-box sidemenu1 (4-01a. Side menu 1)</string>
...@@ -140,6 +140,14 @@ ...@@ -140,6 +140,14 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>subcontent subcontent-box (Subsections)</string> </key>
<value>
<list>
<string>subsection_list</string>
</list>
</value>
</item>
<item> <item>
<key> <string>subcontent subcontent-box adminToolbox (Toolbox)</string> </key> <key> <string>subcontent subcontent-box adminToolbox (Toolbox)</string> </key>
<value> <value>
...@@ -252,14 +260,6 @@ ...@@ -252,14 +260,6 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>subcontent subcontent-box sidemenu1 (Subsections)</string> </key>
<value>
<list>
<string>subsection_list</string>
</list>
</value>
</item>
<item> <item>
<key> <string>subcontent subcontent-box sidemenu2 (4-01b. Side menu 2)</string> </key> <key> <string>subcontent subcontent-box sidemenu2 (4-01b. Side menu 2)</string> </key>
<value> <value>
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>css_class</string>
<string>default</string> <string>default</string>
<string>editable</string> <string>editable</string>
<string>enabled</string> <string>enabled</string>
...@@ -59,11 +60,17 @@ ...@@ -59,11 +60,17 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>default</string> </key> <key> <string>css_class</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>editable</string> </key> <key> <string>editable</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -71,7 +78,7 @@ ...@@ -71,7 +78,7 @@
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -97,6 +104,10 @@ ...@@ -97,6 +104,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -142,7 +153,7 @@ ...@@ -142,7 +153,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>here/WebSection_viewSubsectionWidget</string> </value> <value> <string>python:here.getLayoutProperty(\'layout_subsection_style\', \'sidemenu1\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
...@@ -158,7 +169,23 @@ ...@@ -158,7 +169,23 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:request.current_web_section.getPortalType() != \'Web Site\' and len(here.getSiteMapTree(depth=1, include_document=False))</string> </value> <value> <string>here/WebSection_viewSubsectionWidget</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:here.getLayoutProperty(\'layout_subsection\', True)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<string>navbar navbar-left</string> <string>navbar navbar-left</string>
<string>headline</string> <string>headline</string>
<string>footer</string> <string>footer</string>
<string>subcontent subcontent-box sidemenu1 (Subsections)</string> <string>subcontent subcontent-box (Subsections)</string>
<string>subcontent subcontent-box sidemenu3 (News)</string> <string>subcontent subcontent-box sidemenu3 (News)</string>
<string>web-toolbar (Toolbar)</string> <string>web-toolbar (Toolbar)</string>
</list> </list>
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>subcontent subcontent-box sidemenu1 (Subsections)</string> </key> <key> <string>subcontent subcontent-box (Subsections)</string> </key>
<value> <value>
<list> <list>
<string>subsection_list</string> <string>subsection_list</string>
......
<?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>_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 metal:define-macro="master"\n
tal:define="menu_item_list python:sitemap_root.getSiteMapTree(depth=depth)">\n
<ul>\n
<li tal:repeat="menu_item menu_item_list">\n
<tal:block tal:condition="not:nocall:menu_item/subsection"><a tal:attributes="href menu_item/url" tal:content="menu_item/translated_title">Menu</a></tal:block>\n
<tal:block tal:condition="nocall:menu_item/subsection">\n
<a tal:attributes="href menu_item/url"><tal:block tal:replace="menu_item/translated_title">Drop-down Menu</tal:block></a>\n
<ul metal:define-macro="generateTree">\n
<li tal:repeat="item menu_item/subsection">\n
<a href="#" tal:attributes="href item/url" tal:content="item/translated_title">Menu subitem 1</a>\n
<tal:recurse define="menu_item item" tal:condition="nocall:item/subsection">\n
<metal:call use-macro="here/WebSection_viewNavigationWidget/macros/generateTree" />\n
</tal:recurse>\n
</li>\n
</ul>\n
</tal:block>\n
</li>\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>sitemap_renderer</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
138 139
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment