Hi TwWizards
I'd like to render/wikify a fieldvalue=true as as a checkmark √
instead of 'true' - AND nothing OR '-' (minus) if the fieldvalue is
false...
How can I accomplish this?
I've made this fET in a tiddler:
<<forEachTiddler
where
'tiddler.tags.contains("Bøger") && tiddler.data("wherekept") &&
tiddler.data("wherekept").contains(context.viewerTiddler.title)'
sortBy
'tiddler.title.toUpperCase()'
write '""+tiddler.fields["rapport"] +" <<siteMap [["+tiddler.title
+"]] . sliders$))"'
none '"//ingen \"bog\" er opgivet endnu//"'
>>
I have put the tiddler inside a ElevViewTemplate like this (I know
it's not a formTemplate, but it works best this way...):
<span class <i>Bog :<i> </span>
<div class macro='formTiddler BogElev'</div>
Now all tiddlers tagged 'Elev'(wherekept) renders the
'Bøger'(booktitles) and a wikification of the fieldvalue 'true' or
'false' for the tiddlerfield 'rapport'.
So far so good....
I'd like to switch the output of write '""+tiddler.fields["rapport"]
to a checkmark: √ instead of 'true' - AND nothing OR '-' (minus) when
the fieldvalue is false...
Is it doable - ??
YS Måns Mårtensson
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---