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 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.