[Plone-IT] Condition in portal_css & portal_javascript
Yuri
yurj a alfa.it
Mer 8 Ott 2008 08:24:04 UTC
Vito Falco ha scritto:
> Hola,
> purtroppo mi restituisce il seguente errore:
>
> NameError: name 'portal_interface' is not defined (Also, the
> following error occurred while attempting to render the standard
> error message, please see the event log for full details: name
> 'portal_interface' is not defined)
>
>
> Come faccio? non mi sembra di poter annidare in un getToolByName il
> tutto :-S
context.portal_interface? :) o here.portal_interface?
> Vito
>
> 2008/10/7 Fabrizio Reale <fabrizio.reale a redomino.com
> <mailto:fabrizio.reale a redomino.com>>
>
> Il martedì 7 ottobre 2008 17:33:12 Fabrizio Reale ha scritto:
> > Salutos allo spagnolos (ho scritto bene?)
> >
> > > ho due filetti css e uno javascript che mi servono solo nella
> homepage e
> > > non il tutto il resto del sito. Come faccio quindi, nel mio
> prodottino, a
> > > impostare una condition per fare cio'?
> > > Utilizzando sempre condition del tipo: "se *here *sta implementata
> > > l'interfaccia *ISiteRoot *allora carica altrimenti no".
> >
> > portal_interface è tuo amico :)
>
> Anche io lo sono...ti ho recuperato un codice di esempio:
> portal_interface.objectImplements(obj,'webdav.WriteLockInterface.WriteLockInterface')
>
> Fabry
>
> --
> Fabrizio Reale
> fabrizio.reale a redomino.com <mailto:fabrizio.reale a redomino.com>
> 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
> Plone-IT a lists.plone.org <mailto:Plone-IT a lists.plone.org>
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html
>
>
>
>
> --
> "Design is the method of putting form and content together. Design,
> just as art, has multiple definitions; there is no single definition.
> Design can be art. Design can be aesthetics. Design is so simple,
> that's why it is so complicated." by Paul Rand
> ------------------------------------------------------------------------
>
> _______________________________________________
> Plone-IT mailing list
> Plone-IT a lists.plone.org
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html
Maggiori informazioni sulla lista
Plone-IT