ciao, provacosi:
<a href="#"
class="tile"
tal:condition="not:view/title"
tal:attributes="href string:${root/absolute_url}/sitemap"
tal:define="portal here/portal_url/getPortalObject;
sezione python:
here.portal_url.getRelativeContentPath(here)[0];
titolo python:portal[sezione].title_or_id();"
tal:content="titolo">Sezione</a>
non so se sia il metodo piu' veloce/elegante, ma funge.
bye
2007/12/9, Fabrizio Reale <[EMAIL PROTECTED]>:
>
> Alle domenica 9 dicembre 2007, Vito Falco ha scritto:
> > Grazie, ma...
> >
> > non funge, l'errore che mi tira fuori è questo:
>
>
> > Il giorno 09/dic/07, alle ore 15:40, Fabrizio Reale ha scritto:
> > > python:getattr(portal,here.getSectionFromURL,portal).title_or_id()
>
> Ah ma non mi hai detto dove l'usavi...pensavo fossi nel main_template.
> Comunque portal è solitamente definito nel global_defines (dacci
> un'occhiata...alla classe, non solo alla ZPT), che è importato in tanti
> template Plone.
> Puoi comunque definirlo come here.portal_url.getPortalObject()
>
>
> Fabry
>
>
>
> --
> Fabrizio Reale [EMAIL PROTECTED]
> Redomino S.r.l. Largo Valgioie 14 - 10146 Torino - Italy
> Tel: +39 011 7499875 - Fax: +39 011 3716911 http://www.redomino.com/
>
> _______________________________________________
> Plone-IT mailing list
> [email protected]
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html
>
--
bye
SauZheR
************************************
l'iterazione è umana...
la ricorsione, Divina!
************************************
reply to: sauzher AT gmail DOT com
_______________________________________________
Plone-IT mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html