products/CPSRSS

view skins/widget_portlet_rss.pt @ 284:0f9245734ba1

hgbundler made release tag
author Georges Racinet on purity.racinet.fr <georges@racinet.fr>
date Wed, 28 Sep 2011 20:54:53 +0200
parents d5edc7d46e93
children bc5b1366d4c3
line source
1 <tal:block define="ds options/datastructure;
2 export request/form/export|nothing;
3 portal here/portal_url/getPortalObject;
4 view nocall:portal/@@channels_restricted;
5 rssitems python: view.rssItems(cont_id='portal_rss',
6 **dict(ds))"
7 condition="rssitems">
9 <tal:block condition="not:export">
10 <ul class="cpsskinsMenu">
11 <tal:block repeat="item rssitems">
12 <li tal:define="item_url item/url;
13 rendered item/rendered">
14 <a tal:attributes="href item_url;
15 onclick python:item['newWindow'] and 'window.open(\x22%s\x22)\x3b return false\x3b' % item_url or None"
16 tal:content="structure rendered" />
17 </li>
18 </tal:block>
19 </ul>
20 <tal:block condition="rssitems">
21 <metal:block use-macro="here/cpsportlet_macros/macros/xml_exports" />
22 </tal:block>
23 </tal:block>
25 <tal:block condition="export">
26 <tal:block define="export_macro string:export_${export};
27 items rssitems">
28 <metal:block use-macro="here/cpsportlet_macros/macros/?export_macro|
29 here/cpsportlet_macros/macros/export_not_implemented" />
30 </tal:block>
31 </tal:block>
32 </tal:block>