products/CPSRSS

view skins/widget_portlet_rss.pt @ 297:eb4d70018698

Quickfix for the stock RSS portlet Make it work without switching to the new rendering engine
author Georges Racinet <georges@racinet.fr>
date Sat, 24 Jan 2015 01:21:22 +0100
parents bc5b1366d4c3
children
line source
1 <tal:block define="ds options/datastructure|python:{};
2 export request/form/export|nothing;
3 portal here/portal_url/getPortalObject;
4 view nocall:portal/@@channels_restricted;
5 dummy python:view.setDataStructure(ds);
6 rssitems python: view.rssItems(cont_id='portal_rss',
7 **dict(ds))"
8 condition="rssitems">
10 <tal:block condition="not:export">
11 <ul class="cpsskinsMenu">
12 <tal:block repeat="item rssitems">
13 <li tal:define="item_url item/url;
14 rendered item/rendered">
15 <a tal:attributes="href item_url;
16 onclick python:item['newWindow'] and 'window.open(\x22%s\x22)\x3b return false\x3b' % item_url or None"
17 tal:content="structure rendered" />
18 </li>
19 </tal:block>
20 </ul>
21 <tal:block
22 define="dm python:ds.getDataModel()">
23 <metal:block use-macro="here/cpsportlet_macros/macros/xml_exports" />
24 </tal:block>
25 </tal:block>
27 <tal:block condition="export">
28 <tal:block define="export_macro string:export_${export};
29 items rssitems">
30 <metal:block use-macro="here/cpsportlet_macros/macros/?export_macro|
31 here/cpsportlet_macros/macros/export_not_implemented" />
32 </tal:block>
33 </tal:block>
34 </tal:block>