Commit c004e80e authored by Jérome Perrin's avatar Jérome Perrin

fixup! Sort web sections alphabetically, if they do not have an int_index

parent f4cdb040
...@@ -122,7 +122,7 @@ def getSiteMapItemTree(section, depth=0, level=None): \n ...@@ -122,7 +122,7 @@ def getSiteMapItemTree(section, depth=0, level=None): \n
})\n })\n
if include_subsection or (include_subsection is None and section.isSiteMapSectionParent()):\n if include_subsection or (include_subsection is None and section.isSiteMapSectionParent()):\n
for subsection in section.contentValues(portal_type=\'Web Section\',\n for subsection in section.contentValues(portal_type=\'Web Section\',\n
sort_on=(\'int_index\', \'translated_title\')\n sort_on=(\'int_index\', \'translated_title\'),\n
checked_permission=\'View\'):\n checked_permission=\'View\'):\n
if subsection.isVisible():\n if subsection.isVisible():\n
subsection_result = getSiteMapItemTree(subsection, depth=depth - 1, level=level + 1)\n subsection_result = getSiteMapItemTree(subsection, depth=depth - 1, level=level + 1)\n
......
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