Commit 3ffccfd3 authored by Gabriel Monnerat's avatar Gabriel Monnerat

- remove useless parameter

- add parameters to render gadgets in Web Site

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44131 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 21c0a6aa
......@@ -52,19 +52,19 @@
<key> <string>_body</string> </key>
<value> <string>portal_catalog = context.portal_catalog\n
\n
website_uid = context.getUid()\n
knowledge_pad = portal_catalog.getResultValue(portal_type="Knowledge Pad",\n
publication_section_uid=website_uid,\n
validation_state="visible")\n
# publication_section_uid=context.getUid(),\n
validation_state=["visible", "public"])\n
\n
knowledge_box = knowledge_pad.newContent(portal_type="Knowledge Box")\n
\n
knowledge_box.setSpecialise("portal_gadgets/%s" % gadget_id)\n
knowledge_box.visible()\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>tab_title, gadget_id</string> </value>
<value> <string>gadget_id</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -87,7 +87,11 @@
<table id="gadget-table"></table>\n
</div>\n
<div class="front_pad">\n
<div tal:content="structure python: here.ERP5Site_viewHomeAreaRenderer(mode=\'web_front\', default_pad_group=\'\')"\n
<!-- XXX - Use WebSection_viewKnowledgePadColumn to display one column only -->\n
<div tal:content="structure python: here.ERP5Site_viewHomeAreaRenderer(gadget_mode=\'web_front\',\n
default_pad_group=\'\',\n
create_default_pad=True, \n
make_security_check=True)"\n
class="draggable_wrapper"/>\n
</div>\n
</div>
......
278
\ No newline at end of file
279
\ 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