I think, there is an showWhen >>else<< possibility. I read it
somewhere in the plugin docu. But don't find the link at the moment.
-m


On Oct 14, 9:59 pm, Mad Scientist Jr <[email protected]>
wrote:
> I have a couple of custom fields field1 & field2 that only display for
> tiddlers with tag mytag. Could someone please explain how I could
> specify some default text if one of the fields is blank?
>
> Here is what I have in my ViewTemplate:
>
> <div macro='showWhen (tiddler.tags.contains("mytag") )'>
> <div><br><strong>Field1: </strong><span macro="view field1"></span>
> <strong>Field2: </strong><span macro="view field2"></span></div>
> </div>
>
> For example how would I get it to display "(empty)" if field1 is blank
> or missing?
>
> Thanks

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