Il giorno gio, 15/10/2009 alle 16.43 +0200, Davide Moro ha scritto:
> Il giorno gio, 15/10/2009 alle 15.58 +0200, Riccardo Lemmi ha scritto:
> > from Products.CMFPlone.CatalogTool import registerIndexableAttribute
> > 
> > def cani_e_gatti(obj, portal, **kw):
> >     if ('CANI' in obj.absolute_url() and obj.Type()=='Page') or
> >        ('GATTI' in obj.absolute_url() and obj.Type()=='File') :
> >        return True
> >     else:
> >        return False
> > 
> > registerIndexableAttribute('cani_e_gatti', cani_e_gatti)
> 
> Esatto.
> 
> Visto che siamo sull'argomento registrazione indici di catalogo vorrei
> segnalare l'utilizzo di collective.indexing: davvero molto carino e
> flessibile :)
> 
> http://plone.org/products/collective.indexing

Sorry, sbagliato link e nome!
Ora correggo :)

-- 
Davide Moro

Redomino S.r.l.
Largo Valgioie 14, 
10146 Torino Italy
Tel: +39 0117499875
http://redomino.com


_______________________________________________
Plone-IT mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html

Rispondere a