I am working on a simple Menu which transcludes a series of sections of a 
main topic (like a slideshow):

\define sliderList(section)
<$button popup="$:/state/$section$" class="btn-invisible tw-slider">
|! $section$  <i class="fa-angle-double-right"></i>|
</$button>
<$reveal type="nomatch" text="" default="" state="$:/state/$section$" 
animate="yes">
<$transclude tiddler="$section$" />
</$reveal>

\end

<<sliderList "section1">>
<<sliderList "section2">>
...

I now wish to add an edit button which selects the currently transcluded 
section for editing

\define editLink()
<$button message="tw-edit-tiddler" class="btn-invisible">
Edit Button
<$reveal type="nomatch" text="" default="" animate="yes">
...
(What do I place here?)
...
</$reveal>
</$button>

(and somewhere in one or more of the transcluded tiddlers, the macrocall)
...
<<editLink>> 

The button always opens the Menu itself for editing rather than the 
currently transcluded section. Messing with the code for the sliderList 
macro (storing $section$ elsewhere) seems to mess with the formatting. 
Surely the system must have a marker somewhere reflecting the currently 
transcluded section, which I can hook into?

Any ideas on this? 

-------------
An example of the menu (without edit function) can be seen here: 
http://wills.tiddlyspot.com/ - #WikiText Help



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

Reply via email to