[Plone-IT] getUrl

Fabrizio Rota fabrizio.rota a gmail.com
Mer 17 Feb 2010 22:26:27 UTC


In un template per portlet custom ho la necessità di estrarre la URL di un
documento.


Il documento viene trovato con questo codice:
<metal:block define-macro="portlet">
     <div  id="portlet_libri"
             tal:define="presults
python:context.portal_catalog(portal_type='News Item',
path='/testsito/news/libri', sort_on='effective', sort_order='reverse')"
             tal:condition="presults">
               <tal:block define="pobj python:presults[0].getObject()">

Se tento di ottenere la url con un codice del genere:

    <a href=""
           tal:attributes="href pobj/getURL;
                           title pobj/Description">
QUI IL LINK</a>

il portlet non si visualizza.
Si può fare qualcosa?

-- 
Faber
--------------------
"Life is what happens to you while you're busy making other plans" - J.
Lennon
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.plone.org/pipermail/plone-plone-it/attachments/20100217/13b62198/attachment.html>


Maggiori informazioni sulla lista Plone-IT