Commit 3249ff62 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web: include Static Web Section in site map

parent 340acac6
......@@ -69,7 +69,7 @@ def getSiteMapItemTree(section, depth=0, level=None):
'subsection' : None,
})
if include_subsection or (include_subsection is None and section.isSiteMapSectionParent()):
for subsection in section.contentValues(portal_type='Web Section',
for subsection in section.contentValues(portal_type=['Web Section', 'Static Web Section'],
sort_on=('int_index', 'translated_title'),
checked_permission='View'):
if subsection.isVisible():
......
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