Commit 16e5f3f5 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_advanced_ecommerce: change the way to display sub sections

parent 564585ff
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
is_root python:current_web_site is current_web_section; is_root python:current_web_site is current_web_section;
"> ">
<tal:block tal:define="menu_item_list_list python: [context.restrictedTraverse(x).WebSection_getSiteMapTree(depth=1) for x in subsection_list] if (is_root or len(current_web_section.WebSection_getSiteMapTree(depth=1))==0) else [current_web_section.WebSection_getSiteMapTree(depth=1)]"> <tal:block tal:define="menu_item_list_list python: [context.restrictedTraverse(subsection_list[0]).WebSection_getSiteMapTree(depth=1)] if is_root else [current_main_section.WebSection_getSiteMapTree(depth=1) for x in subsection_list if current_main_section.getRelativeUrl() == x]">
<ul tal:repeat="menu_item_list menu_item_list_list"> <ul tal:repeat="menu_item_list menu_item_list_list">
<li tal:repeat="menu_item menu_item_list"> <li tal:repeat="menu_item menu_item_list">
<a href="" tal:attributes="href menu_item/url" <a href="" tal:attributes="href menu_item/url"
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: [(x.getTitle(), x.getRelativeUrl()) for x in context.objectValues(portal_type=\'Web Section\') if x.getVisible()]</string> </value> <value> <string>python: [(x.getTitle(), x.getRelativeUrl()) for x in context.objectValues(portal_type=\'Web Section\', sort_on=\'int_index\') if x.getVisible()]</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
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