Segue o código que usei:

 

 

 

<html xmlns:tal="http://xml.zope.org/namespaces/tal";

      xmlns:metal="http://xml.zope.org/namespaces/metal";

      i18n:domain="plone">

<body>

<div metal:define-macro="portlet"

     tal:define="results

         python:here.portal_catalog.searchResults(portal_type='News Item',

         path=' /sala_imprensa/',

         sort_on ='Date',

         sort_order='reverse',

         review_state='published')[:4];">

 

<dl id="portlet-salaimprensa">

    <dt class="portletHeader">

        <img src="imagens/circ_verde.gif"/>&nbsp;Sala de Imprensa

    </dt>

 

       <tal:links tal:repeat="obj results">

       <dd tal:define="oddrow repeat/obj/odd"

           tal:attributes="class python:test('portletItem')">

 

            <a href=""

               class="tile"

               tal:attributes="href obj/getURL;

                               title obj/Description">

                                <span tal:replace="obj/pretty_title_or_id">

                   titulo_ou_id

                </span>

            </a>

        </dd>

  

     </tal:links>

 

 

</dl>

      <p align="right">

           <a href="/sala_imprensa/">mais...</a>

      </p>

 

</div>

</body>

</html>

 

 

Responder a