I found out - Did like this:
My fET:
<<forEachTiddler
where
'tiddler.tags.contains("Bøger") && tiddler.data("wherekept") &&
tiddler.data("wherekept").contains(context.viewerTiddler.title)'
sortBy
'tiddler.title.toUpperCase()'
write '"[x(rapport@"+tiddler.title+")] <<siteMap [["+tiddler.title
+"]] . sliders$))"'
none '"//ingen \"bog\" er opgivet endnu//"'
>>
and in the ElevViewtemplate:
<span class <i>Bog :<i> </span>
<div <span macro='wikify "√ BogRapport"'></span>
<div class macro='tiddler BogElev'</div>
It works as I intended - "almost" - Because I 'only' wanted a
wikification...
However, now I've got the ability to toggle the fieldvalue in another
tiddler...
Regards Måns Mårtensson
On May 7, 2:05 am, Måns <[email protected]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---