Hi Mans On Sunday, June 1, 2014 2:55:10 PM UTC+2, Måns wrote: > > Hi Matabele > > Birthe C. told me that Stephan Hradek published a ListSelect Widget on > http://tiddlystuff.tiddlypot.com . > I use it like this in combination with your mangletags demo: >
Nice :-) You might prefer to stick the two buttons into a toggle like this: <$reveal type="nomatch" state="!!state1" text="show"> <$mangletags tiddler={{temp!!task}} add={{temp!!teacher}}> <$setfield message="tw-mangle-tags"> <$mangletags tiddler={{temp!!teacher}} add={{temp!!task}} message="tw-set-field"> <$button set="!!state1" setTo="show" message="tw-mangle-tags" param={{temp!!teacher}}>Set</$button> </$mangletags></$setfield></$mangletags> </$reveal> <$reveal type="match" state="!!state1" text="show"> <$mangletags tiddler={{temp!!task}} find={{temp!!teacher}}> <$setfield message="tw-mangle-tags"> <$mangletags tiddler={{temp!!teacher}} find={{temp!!task}} message="tw-set-field"> <$button set="!!state1" setTo="hide" message="tw-mangle-tags" param={{temp!!teacher}}>Reset</$button> </$mangletags></$setfield></$mangletags> </$reveal> > Now I'd love to combine <$mangletags> with <$maketid> via > <$edit-text tiddler="temp" field="teacher"/> & > <$edit-text tiddler="temp" field="task"/> so it would: > > 1) create a new task tiddler *only* if it doesn't already exist. > 2) create a new teacher tiddler *only* if it doesn't already exist. > > Is this kind of combination possible already - or would it need another > version of <$maketid>? > The <$maketid> widget could easily be adapted to halt if a tiddler with the specified title exists (instead of revising the title) -- however, this should be possible to determine before calling the widge. I suppose an attribute could be added to toggle this behaviour (particularly if I drop the set and setTo attributes.) Would this feature be of general use? I aim to keep the widget generic and don't want the widget to get overly confusing to use. 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.