Good point Tony! I think TiddlyTables has a lot to learn and what you said is used throughout TiddlyTables code!
--Mohammad On Friday, December 13, 2019 at 12:19:33 AM UTC+3:30, TonyM wrote: > > Mohammad et all > > A design pattern I use to simplify similar code is turning text references > or transcludes into variables > > \define sitetitle() {{$:/SiteTitle}} > \define sitesubtitle() {{$:/SiteSubtitle}} > > These can be global variables as well > > One advantage being variables can be reset with a local variable or field. > > <$set name=sitetitle value={{!!sitetitle-field}} emptyValue=<<sitetitle>> > > > Note how the new value can be sourced anywhere and you can even reuse the > variable name, which is a kind of override. > > This method allows fields, tiddlers and text references to become > variables, All that is missing is the ability to allow variables to become > fields, tiddlers and text references without a trigger button. Since the > view widget does not accept variable input we have a serious gap. I plan to > make a workaround soon. > > Regards > Tony > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/799ae0a8-4313-4780-b62f-75c655df2d74%40googlegroups.com.