Thanks a lot Eric, That helped, the @ was bugging me,
I changed it to: <div class='stretch' macro="showWhenTagged note"> <span> macro='edit note 1'></span> </div> Have a nice day, Okido On Jan 25, 9:54 pm, Eric Shulman <[email protected]> wrote: > > I use a a tiddler: > > {{stretch textarea{<<edit note>>}}} > > I would like to have this included in viewtemplate and show it > > depending on tag value. > > <div macro="showWhenTagged note"> > > <span> macro='edit {{[email protected]}} 1'></span> > > </div> > > The TW core's <<edit fieldname length>> macro *always* operates on > fields in the current tiddler. For example: > <span macro='edit note 1'></span> > implicitly refers to a field in "tiddler.title" > > Please note that the "fieldname@tiddlername" syntax you show in your > sample code is *NOT* actually supported at all by the TW core <<edit>> > macro. That syntax is an enhancement provided by: > http://www.TiddlyTools.com/#EditFieldPlugin > > For your purposes, since the desired 'note' field is in the current > tiddler, you don't actually need to use the plugin-enhanced "@" > syntax. However, you have said that you also want to embed the field > in a *view* template (rather than the conventional EditTemplate > usage). > > Unfortunately, embedding the core's <<edit>> macro in a ViewTemplate > will still not permit you to *save* any changes to the field value, > because there is no "done" toolbar button in the ViewTemplate toolbar > with which to trigger the saving of the changed value. > > Fortunately, this problem is also addressed by EditFieldPlugin, > which extends the core's <<edit>> macro to handle editing *and* saving > fields embedded in a ViewTemplate: if you make changes to the field > value and then press ENTER or move away from the field (i.e., "onBlur" > event), you will be prompted to save any changes. If you press ESC, > it will ask you to confirm before discarding any changes. > > enjoy, > -e > Eric Shulman > TiddlyTools / ELS Design Studios -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

