On Dec 7, 9:46 am, Måns <[email protected]> wrote:
> Hi axelm
>
> > <<wikify "%0" tdptask0>>
>
> > However, if the field does not exist, it produces this text:
>
> > tdptask0
>
> > How can I make it not show anything, if the field does not exist?

I will add an option to the plugin that will allow you to suppress the
field name displayed as output when the field isn't present.

> I've got the same problem. A while back I tried different things - and
> I made a fallback for tiddler data [1]:
>
> <<wikify %0 {{store.getValue("fieldtitle","fieldvalue is missing")}}>>
>
> It doesn't ?!?!... - I can't figure out what workaround could produce
> a fallback...

You are missing an argument to the getValue() function.  You need to
pass both the tiddler *title* and the *fieldname* (as well as the
fallback default value).  Thus:

<<wikify %0 {{store.getValue("tiddlertitle","fieldtitle","fieldvalue
is missing")}}>>

enjoy,
-e

-- 
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.

Reply via email to