Re: Aussagekräftiges SelectionField mit PloneFormGen (radio buttons)

"Jens W. Klein" <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization Klein & Partner KEG, BlueDynamics Alliance
Message-ID <1260572371.3866.41.camel@minime>
Zum einen, Du kannst mit CSS eigentlich recht viel erreichen.

Zum anderen: Wenn Du rein das ausgelieferte Markup verändern willst
musst Du recht tief in PFG reingreifen. Hässliche Arbeit...

Alternativ: Ich würde das, was mit CSS allein nicht geht, notfalls mit
Javascript erschlagen. D.h. den Standard Markup verstecken, extra Markup
mit gebundenen Events einfügen und On Klick auf das Bild die Option
setzen. Form-Send würde sich dann neutral Verhalten. Dank jQuery ist das
heutzutage ja alles Kindergarten ;)

hth Jens


Am Freitag, den 11.12.2009, 19:31 +0100 schrieb Jens Nachtigall:
> Hallo,
> 
> gibt es eine Möglichkeit mit PloneFormGen ein SelectionField (also so ein 
> Auswahlfeld mit Radiobuttons) zu erstellen, welches auch etwas html zB <em> 
> oder <img> enthält.
> 
> Sprich statt:
>  o Option A
>  o Option B
>  o Option C
> 
> sowas wie:
>  o <img scr="teaser-bildchenA" /> Option A 
>     sowie etwas Text
>  o <img scr="teaser-bildchenB" /> Option B
>     Hier dann auch noch ein wenig Text
>  o <img scr="teaser-bildchenC" /> Option C
>     Hier dann auch noch ein wenig Text
> 
> Also das <label> sollte etwas html enthalten und nicht nur einen String.
> 
> Grüße,
> Jens
-- 
Jens W. Klein
Software Architect
Managing Director, General Partner
+43 512 890077

Klein & Partner KEG          WEB APPLICATIONS,  ZOPE,  PLONE, HOSTING
BlueDynamics Alliance        production: concept, development, design
http://bluedynamics.com      consulting: analysis, coaching, training
http://zoplo.com             management: projects, process, community



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.