On 13.11.2004 00:25, Paul Joseph wrote:
I should also mention that I actually have two booean fields in the repeater and would like to show a different image for the second boolean field...
the second boolean field is <fd:booleanfield id="is_flagged" >
<fd:label></fd:label>
</fd:booleanfield>
and I would like to show an image of a small flag, if
it is true.
I say this so that we dont go the way of xslt (?)
What does this sentence mean? You have to go the XSLT way. For the two different checkbox stylings put a property into your template on fi:styling:
<ft:widget id="boolean_field1"> <fi:styling type="image"/> </ft:widget>
<ft:widget id="boolean_field2"> <fi:styling type="flag"/> </ft:widget>
Extend the default stylesheets by adding two stylesheets:
<xsl:template match="fi:[EMAIL PROTECTED]'image']"> your implementation </xsl:template>
<xsl:template match="fi:[EMAIL PROTECTED]'flag']"> your implementation </xsl:template>
Joerg
Hi,
I have a boolean field as part of my repeater widget group.
<fd:booleanfield id="is_late" > <fd:label></fd:label> </fd:booleanfield>
It works nicely - only thing I'd like to do is enhance it - i.e. replace it with a graphic (in this case a Clock gif) if it is checked, and by nothing or a blank gif, if it is unchecked.
I have tried various ways but don't know how to it - any pointers would be much appreciated.
TIA! Paul
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
