diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml index 9aa05cd1300403d1a9601507f0a45beb6c432d51..30939d7cef7470a1ef18f8fe51e6fa79d6478942 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml @@ -114,11 +114,12 @@ doc_info[\'thumbnail_url\'] = context.Base_getThumbnailAbsoluteUrl()\n if website is None:\n website = context.getWebSiteValue() or context.REQUEST.get(\'current_web_site\')\n \n -sections = []\n -for websection in website.getWebSectionValueList(context):\n - sections.append({\'title\': websection.getCompactTranslatedTitle(),\n - \'url\': websection.absolute_url()})\n -doc_info[\'sections\'] = sections\n +doc_info[\'sections\'] = []\n +if document_web_section_list is None:\n + document_web_section_list = website.getWebSectionValueList(context)\n +for websection in document_web_section_list:\n + doc_info[\'sections\'].append({\'title\': websection.getCompactTranslatedTitle(),\n + \'url\': websection.absolute_url()})\n doc_info[\'url\'] = context.absolute_url()\n \n return context.Document_viewPopupTemplate(**doc_info)\n @@ -126,7 +127,7 @@ return context.Document_viewPopupTemplate(**doc_info)\n </item> <item> <key> <string>_params</string> </key> - <value> <string>website=None</string> </value> + <value> <string>website=None, document_web_section_list=None</string> </value> </item> <item> <key> <string>id</string> </key> diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision index 3af7d09ab54671e35c1084b51d08ba85a99b1471..f0acb599367d0272dbc681cb254ba17aede63998 100644 --- a/bt5/erp5_web/bt/revision +++ b/bt5/erp5_web/bt/revision @@ -1 +1 @@ -1070 \ No newline at end of file +1071 \ No newline at end of file