Hi Dave
> What I was wondering if there was some programmatic way to have the same
> thing plunked into every section and have it read its own section name...
> Something like this:
> <<editSection {{this.tiddler##this.section}} edit 'click to edit this
> section'>>
There's a little workaround which will help you get a toc of all
already existing sections + an edit section button for each section:
First install Eric's SectionLinksPlugin
http://www.tiddlytools.com/#SectionLinksPlugin
then you can change the <<SectionTOC>> output link format by adding
the following statement to a tiddler tagged with systemConfig:
config.macros.sectionTOC.linkFormat='[[%0|##%0]]';
The default value (shown above) produces a link to each section within
the tiddler, using "%0" to insert the section name into the link.
You can add extra formatting to generate additional output to suit
your purposes. For example, if you have EditSectionPlugin installed,
you could include a link that invokes that plugin's popup editor
directly from each item in the TOC display, like this:
config.macros.sectionTOC.linkFormat='[[%0|##%0]] <<editSection [[##
%0]] [[(edit)]]>>';
(Citation copied from SectionLinksPlugin##Configuration - Read more
about SectionLinksPlugin in the plugin doc sections)
Cheers Måns Mårtensson