Hmmm... For now I was able to alter the ViewTemplate to render the fields in an HTML table with a specific width for the TDs, so if it's empty the spacing is consistent.
On Oct 14, 6:47 pm, PMario <[email protected]> wrote: > 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.

