Hi Michael The key is that both the transclude and view widgets render their own content as a fallback if the specified content is not available. In this case, the view widget is contained within the transclude widget, and so it is only rendered when the target of the transclusion is not available.
By the way, the core macros generally transclude the caption field (which means that its content are wikified) and views the title field (which means that it is not wikified). It's useful to transclude the caption field so that it can include logic to handle translation, but it's never useful to wikify the title field because it is always used "raw". Best wishes Jeremy. On Fri, Dec 5, 2014 at 8:07 PM, Michael Wiktowy <[email protected]> wrote: > On Friday, December 5, 2014 2:49:51 PM UTC-5, Evolena wrote: >> >> The list-links macro uses this method: >> >> <$link to={{!!title}}> >> <$transclude field="caption"> >> <$view field="title"/> >> </$transclude> >> </$link> >> >> The choice of transclude or view widget is up to your use-cases. >> > > Thank you ... that works perfectly! It will take me some time to figure > out why it is not displaying both the caption and the title when it exists > but in the meanwhile I will use that solution blindly :] > > Based on Conditional variables in http://tiddlywiki.com/#SetWidget , I > was fiddling along the lines of something like: > > <$set name="display_name" filter="[is[current]field:caption[]]" > value={{!!caption}} emptyValue={{!!title}}> > <$link><<display_name>></$link> > </$set> > > but getting no success. Maybe it was a blind alley ... > > Thanks again, > > /Mike > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

