Hi Matabele Neat :-)
As I understand it the maketid widget creates the tiddler if it doesn't exist already - and appends the specified field and fieldvalue at the same time.. If the tiddler doesn't exist already the maketid widget and set field widget will write fields & values to the existing tiddler, however the maketid will also create a new tiddler with a numbered appendix to the title - and this tiddler won't get fields & values set by the widgets... It seems a little unuseful that maketid will create an extra tiddler without fields & values.... What might an use case be? Hmm. Maybe it would be good if maketid didn't create a new tiddler - if the targetted already exists - however this might be the basis for writing yet another widget - or have some additional parameter telling maketid not to create a tiddler if the original tiddler title already exists... As if I knew what I was talking about ... ;-) Cheers Måns Mårtensson Den lørdag den 31. maj 2014 12.51.24 UTC+2 skrev Matabele: > > Hi Mans > > I had an additional thought - the following code might appear to > synchronise the target: > > <$tiddler tiddler="Target One"> > <$setfield set="!!field3" setTo="this is the text from the setfield > widget"> > <$maketid title={{!!title}} set="!!field2" setTo="this is text from the > maketid widget" message="tw-set-field"> > <$button set="!!field1" setTo="this is the text from the button widget" > message="tw-new-tiddler">Test</$button> > </$maketid></$setfield></$tiddler> > > However this will be so only in the absence of an existing tiddler titled > 'Target One'. If 'Target One' exists, the maketid widget will create > 'Target One 1' which will be targeted by the setfield widget (field3) -- > however the set and setTo attributes of the button and maketid widgets will > target the existing 'Tiddler One' (field1 and field2.) > > regards > > On Saturday, May 31, 2014 10:26:16 AM UTC+2, Måns wrote: >> >> Hi Matabele >> >> >>> Exercise caution when using the 'set=' and 'setTo=' attributes of the >>> <$button> and <$maketid> widgets in the same way as in the <$setfield> >>> widgets. The former do not target the value for the target propagated with >>> the 'param=' attribute by default, and in some circumstances will, >>> therefore, target a different tiddler. >>> >> >> Ok. >> Can you give me an example when it won't target the current tiddler or >> the tiddler being created? >> >> Cheers Måns Mårtensson >> > -- 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.