Commit 31addb00 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make erp5_km folder accessible from any skin. all_languages=True on WebSite_viewDocumentRender.

parent f4d15214
...@@ -3,10 +3,6 @@ ...@@ -3,10 +3,6 @@
<skin_folder>erp5_jquery</skin_folder> <skin_folder>erp5_jquery</skin_folder>
<skin_selection>KM</skin_selection> <skin_selection>KM</skin_selection>
</skin_folder_selection> </skin_folder_selection>
<skin_folder_selection>
<skin_folder>erp5_km</skin_folder>
<skin_selection>KM</skin_selection>
</skin_folder_selection>
<skin_folder_selection> <skin_folder_selection>
<skin_folder>erp5_km_theme</skin_folder> <skin_folder>erp5_km_theme</skin_folder>
<skin_selection>KM</skin_selection> <skin_selection>KM</skin_selection>
......
...@@ -64,7 +64,7 @@ if box_relative_url:\n ...@@ -64,7 +64,7 @@ if box_relative_url:\n
preferences = box.KnowledgeBox_getDefaultPreferencesDict()\n preferences = box.KnowledgeBox_getDefaultPreferencesDict()\n
reference=preferences.get(\'preferred_document_reference\', None)\n reference=preferences.get(\'preferred_document_reference\', None)\n
if reference is not None:\n if reference is not None:\n
web_page_list = context.getDocumentValueList(reference=reference, \n web_page_list = context.getDocumentValueList(reference=reference, all_languages=True,\n
portal_type=\'Web Page\')\n portal_type=\'Web Page\')\n
if len(web_page_list):\n if len(web_page_list):\n
return \'<div class="web-page-renderer">%s</div>\' %web_page_list[0].getObject().asStrippedHTML()\n return \'<div class="web-page-renderer">%s</div>\' %web_page_list[0].getObject().asStrippedHTML()\n
......
1849 1850
\ No newline at end of file \ No newline at end of file
erp5_jquery | KM erp5_jquery | KM
erp5_km | KM
erp5_km_theme | KM erp5_km_theme | KM
erp5_km_widget_library | KM erp5_km_widget_library | KM
erp5_xhtml_style | KM erp5_xhtml_style | KM
\ 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