Whoa-ho! Your magic works! Thanks Tutor Eric.

I have tried to use something like <div macro='editSections XXX YYY'></div> 
(or something more buggy) but did not get the desired result, so I thought 
maybe this macro was an exception to the ViewTemplate syntax. I should have 
study TW macros more thoroughly...

Cheers
G.J.Robert

Eric Shulman於 2012年8月11日星期六UTC+8上午1時00分27秒寫道:
>
>
>
> On Aug 9, 5:02 pm, "G.J.Robert" <[email protected]> wrote: 
> > It seems that <<editSections>> macro of EditSectionPlugin must be added 
> > manually to each tiddler. Is there already a way to incorporate it in 
> the 
> > ViewTemplate so that every tiddler get the edit buttons for their 
> sections 
> > by default? Thanks! 
>
> You can invoke macros from within the ViewTemplate using this syntax: 
>
> <span macro="..."></span> 
>
> just put the normal macroname and params within the "...", but leave 
> off the enclosing angle brackets (i.e., << and >>), like this: 
>
> <span macro="editSections edit 'edit this section'"></span> 
>
> Note one limitation: because the surrounding template syntax uses the 
> double-quote (") to enclose the macro syntax, you cannot use double- 
> quote *within* the macro.  Use single-quotes ('...') or doubled-square 
> brackets ([[...]]) to enclose macro parameters that contain spaces. 
>
> enjoy, 
> -e 
> Eric Shulman 
> TiddlyTools / ELS Design Studios 
>
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"... 
>    http://www.TiddlyTools.com/#Donations 
>
> Professional TiddlyWiki Consulting Services... 
> Analysis, Design, and Custom Solutions: 
>    http://www.TiddlyTools.com/#Contact 
>

Eric Shulman於 2012年8月11日星期六UTC+8上午1時00分27秒寫道:
>
>
>
> On Aug 9, 5:02 pm, "G.J.Robert" <[email protected]> wrote: 
> > It seems that <<editSections>> macro of EditSectionPlugin must be added 
> > manually to each tiddler. Is there already a way to incorporate it in 
> the 
> > ViewTemplate so that every tiddler get the edit buttons for their 
> sections 
> > by default? Thanks! 
>
> You can invoke macros from within the ViewTemplate using this syntax: 
>
> <span macro="..."></span> 
>
> just put the normal macroname and params within the "...", but leave 
> off the enclosing angle brackets (i.e., << and >>), like this: 
>
> <span macro="editSections edit 'edit this section'"></span> 
>
> Note one limitation: because the surrounding template syntax uses the 
> double-quote (") to enclose the macro syntax, you cannot use double- 
> quote *within* the macro.  Use single-quotes ('...') or doubled-square 
> brackets ([[...]]) to enclose macro parameters that contain spaces. 
>
> enjoy, 
> -e 
> Eric Shulman 
> TiddlyTools / ELS Design Studios 
>
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"... 
>    http://www.TiddlyTools.com/#Donations 
>
> Professional TiddlyWiki Consulting Services... 
> Analysis, Design, and Custom Solutions: 
>    http://www.TiddlyTools.com/#Contact 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/EGF3zshMBOwJ.
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.

Reply via email to