Commit 10761684 authored by Ivan Tyagov's avatar Ivan Tyagov

In some cases a Box can override Gadget default way of rendering (usefull in...

In some cases a Box can override Gadget default way of rendering (usefull in cases when we care for SEO for anonymous users).
Make RSS feed more visible.
parent 69fc5568
......@@ -6,4 +6,7 @@
<item>DefaultImage</item>
<item>Gadget</item>
</portal_type>
<portal_type id="Knowledge Box">
<item>Gadget</item>
</portal_type>
</property_sheet_list>
\ No newline at end of file
......@@ -179,11 +179,15 @@
</item>
<item>
<key> <string>init_script</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>permission</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>title</string> </key>
......@@ -193,6 +197,18 @@
<key> <string>type_class</string> </key>
<value> <string>XMLObject</string> </value>
</item>
<item>
<key> <string>type_interface</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_mixin</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
......
......@@ -54,11 +54,16 @@
<div class="document-gadget-quick-preview">\n
\n
<div class="teaser"\n
tal:define="is_external_rss_image_available python: image not in ((), None, [])"\n
tal:attributes="class python: test(is_read, \'teaser read\', \'teaser unread\');\n
onclick string:if(this.className!=\'teaser read\'){this.className=\'teaser read\';;$.get(\'Base_setRssItemReadInSelection\', {\'selection_name\':\'${selection_name}\',\'item\':\'${md5}\'})};;$(\'#${dom_id}\').toggle();">\n
<img class="thumbnail-image"\n
tal:condition="python: image not in ((), None, [])"\n
tal:condition="is_external_rss_image_available"\n
tal:attributes="src python: image[0]" alt="Thumbnail"/>\n
\n
<img tal:condition="not: is_external_rss_image_available"\n
src="web_page.png"/>\n
\n
<span class="document-title"\n
tal:content="title"/> - \n
<span class="modification-date"\n
......
......@@ -65,7 +65,7 @@
dummy python: request.form.update(dict(box_relative_url=box_relative_url));\n
edit_form_id gadget/getEditFormId;\n
view_form_id gadget/getViewFormId;\n
render_type gadget/getRenderType;\n
render_type python: test(box.getRenderType() is not None, box.getRenderType(), gadget.getRenderType());\n
is_asynchronous_gadget python: render_type == \'asynchronous\';\n
is_gadget_visible python: gadget is not None and gadget_state!=\'invisible\';">\n
\n
......
......@@ -12,7 +12,7 @@
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts23095087.4</string> </value>
<value> <string>ts29466233.61</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -406,6 +406,11 @@ div.block div.worklist_list ul li a:hover{\n
/* Some gadgets share same Document_getSummaryAsHTML or RssFeed_getSummaryAsHTML */\n
div.document-gadget-quick-preview div.teaser{\n
cursor: pointer;\n
margin-bottom: 3px;\n
}\n
\n
div.document-gadget-quick-preview div.teaser img{\n
vertical-align:top;\n
}\n
\n
div.document-gadget-quick-preview span.document-title,\n
......@@ -496,7 +501,7 @@ div.gadget-rss-reader .body {\n
</item>
<item>
<key> <string>size</string> </key>
<value> <int>8240</int> </value>
<value> <int>8337</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
745
\ No newline at end of file
746
\ No newline at end of file
Gadget Type | DefaultImage
Gadget Type | Gadget
Gadget | Gadget
Knowledge Box | Gadget
\ 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