Commit 6507dbca authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

sort documents by title in site map.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28329 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1cd1aa48
...@@ -113,7 +113,7 @@ def getSiteMapItemTree(section, depth=0, level=None): \n ...@@ -113,7 +113,7 @@ def getSiteMapItemTree(section, depth=0, level=None): \n
if not depth: return result\n if not depth: return result\n
if level is None: level = 1\n if level is None: level = 1\n
if include_document or (include_document is None and section.isSiteMapDocumentParent()):\n if include_document or (include_document is None and section.isSiteMapDocumentParent()):\n
for document in section.getDocumentValueList():\n for document in section.getDocumentValueList(sort_on=\'title\'):\n
result.append({\n result.append({\n
\'url\' : section.getPermanentURL(document),\n \'url\' : section.getPermanentURL(document),\n
\'level\' : level,\n \'level\' : level,\n
......
835 836
\ 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