Opa,

Inserir a data de publicação, logo após o título, onde o index effective
será formatado pelo strftime():
             ....
            <a href="" class="tile" tal:attributes="href obj/getURL;
                                                                      title
obj/Description">
                <span tal:replace="obj/pretty_title_or_id">
                   titulo_ou_id
                </span>
*                <!--  Data de Publicacao  -->

                <span class="portletItemDetails"
                            tal:content="python:obj.effective.strftime('%d -
%m - %Y') ">06-06-2006</span>

                <!--  /Data de Publicacao  -->*
             </a>
              ....
Deve resolver...
att,

2009/1/28 Carmelita Cristina Tolentino <crist...@arquivar.com.br>

>    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>
>
>
>
>
>  
>



-- 
Lucas Aquino
Liberiun
lucasaqu...@liberiun.com
http://www.liberiun.com
+55 61 3468-2662

Responder a