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

Actually, it turns out that getValue(...) only takes 2 arguments, and
does *not* support passing a 'fallback' value for when the field is
not present.  You *can* still provide a fallback value, but the code
is a bit different:

{{store.getValue("tiddlertitle","fieldtitle")||"fieldvalue is
missing"}}

This will invoke getValue() and then, if it returns a NULL, it will
fallback to using the text following the "OR" (||) separator.

Also note that there was no reason to use the "section transclusion"
trick to pass the tiddler title.  You can reference "tiddler.title"
directly within the evaluated parameter in the <<wikify>> macro.
Thus:

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

-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