Hi Two more widgets to add to the stack: http://gwiz.tiddlyspot.com/#IfTidWidget:IfTidWidget%20IfTrefWidget
1. The <$iftid> widget was developed in response to a users request to create a new tiddler only if a tiddler with the specified title did not already exist: <$maketid title="Something" ... > <$iftid tiddler="Something" then="do-something-else" else="tw-new-tiddler" ...> <$button message="tw-if-tiddler" ...>Create If Doesn't Exist</$button> </$iftid></$maketid> I added the ability to test for the existence of a specified field of the targeted tiddler (defaults to 'title'.) The widget may thus be used, for example, to tame the <$setfield> widget, which will not only create a non-existent field but will also create a non-existent tiddler (when a text reference is targeted with the 'set=' attribute) -- a behaviour which may be unwanted in some circumstances. 2. The <$iftref> widget checks for a match between the value of the text-reference specified and a value specified: <$iftref tref="Target!!field-name" value="value-to-match" then="do-this-if-match" else="do-something else" ...> <$button message="tw-if-tref" ...>If Match</$button> </$iftref> The widget may be used, for example, to create a simple password check (demo in the documentation.) One use that comes to mind is when switching back to a normal theme from a disabled theme -- a password would be required in addition to a hidden button. I have also modified the <$mangletags> and <$setfield> widgets -- when the 'tiddler=' attribute is used, the parameter to the message now defaults to the value of the 'tiddler=' attribute. This allows a user to change the target tiddler for the existing and subsequent widgets, which I feel is a more intuitive behaviour for the widgets. The 'set=' and 'setTo=' attributes have been removed from the latest version of the <$maketid> widget, as there were some confusions over their use. Hope you find the new widgets useful :-) regards -- 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.

