Default
Retornar à newsletter
<table border="0" cellpadding="10" cellspacing="10" width="100%"> <tal:block tal:repeat="object context/queryCatalog" i18n:domain="EasyNewsletter"> <tr> <td> <h2 class="tileHeadline"><a tal:attributes="href object/getURL" tal:content="object/Title">Title</a></h2> <p class="tileBody"> <span tal:content="object/Description">Description</span> </p> <p class="tileFooter"> <a tal:attributes="href object/getURL" i18n:translate="read_more">Read more</a>… </p> </td> <td width="164" align="right"> <tal:image_obj tal:define="item_object object/getObject;"> <tal:block condition="python:object.portal_type in ['Image', 'News Item']"> <a tal:attributes="href object/getURL"> <img class="tileImage" tal:condition="python:hasattr(item_object, 'tag')" tal:attributes="src python:object.getURL(relative=1) + '/@@images/image/thumb'" /> </a> </tal:block> </tal:image_obj> </td> </tr> </tal:block> </table> <tal:block tal:repeat="subtopic context/getSubTopics"> <table border="0" cellpadding="10" cellspacing="10" width="100%"> <tr> <th> <h1 tal:content="subtopic/Title">Title</h1> </th> </tr> <tal:blockitems tal:repeat="object subtopic/queryCatalog" i18n:domain="EasyNewsletter"> <tr> <td> <h2 class="tileHeadline"><a tal:attributes="href object/getURL" tal:content="object/Title">Title</a></h2> <p class="tileBody"> <span tal:content="object/Description">Description</span> </p> <p class="tileFooter"> <a tal:attributes="href object/getURL" i18n:translate="read_more">Read more</a>… </p> </td> </tr> <tr> <td width="164" align="right"> <tal:image_obj tal:define="item_object object/getObject;"> <tal:block condition="python:object.portal_type in ['Image', 'News Item']"> <a tal:attributes="href object/getURL"> <img class="tileImage" tal:condition="python:hasattr(item_object, 'tag')" tal:attributes="src python:object.getURL(relative=1) + '/@@images/image/thumb'" /> </a> </tal:block> </tal:image_obj> </td> </tr> </tal:blockitems> </tal:block>