Am Sonntag, 26. Januar 2014 06:57:36 UTC+1 schrieb Danielo Rodríguez: > > Hello Stephan (and every other that can answer) > > I'm trying to understand the Contacts DB example from > http://tw5magick.tiddlyspot.com/, but I'm stucked. > > This is what I understood > > - There is a template to create new tiddlers > > The new tiddler is created withe the newtiddler widget's button. There is a template to edit the fields of this new tiddler.
> > - There is a temporary tiddler, but I don't understand at all how it > works. What field are you editing of that tiddler? I suppose just the > content, since you transclude it to the new tiddler. > > Correct: I edit the content of this temp-tiddler. > > - A button that passes parameters to the newtiddler widget, the > content of the temp tiddler as title. But I don't understand the edit="no" > > This is the newtidder widget's button (The + sign). It's taking the temp tiddler's content. «edit="no"» is explained on http://tiddlystuff.tiddlyspot.com/ > This defines wether to open the new tiddler in edit mode. Must be one of > "yes", "no", "show" or (not implemented yet) "inline". Defaults to "yes". > > - I understand the role of the $set widget, but I never imagined using > it this way. > > What I want to achieve (right now) is to empty the edit-text widget after > creating the new tiddler. > I doubt you can achieve this without using javascript. In my case it is emptied when you close the edit fields. But this is just a side effect - or better - this is how it works ;) The edit fields show up when the entrie's title is identical to the content of the temp-tiddler. So in order for the edit fields to show up, I put the title into the temp tiddler. Done by the "pen"-button after the entries. When you then click the "check"-button, the temp tiddler is simply emptied and so the edit fields vanish and the edit-text widget (of course) is also emptied. So the only way you can achieve your goal at the moment is by clicking a kind of "clear" button. -- 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/groups/opt_out.

