Hi Richard The tabs macro places the title of the current tab in the variable "currentTab".
So, in your top level tab tiddlers you can copy that variable to a new variable "currentChapter" like this: <$set name="currentChapter" value=<<currentTab>>> ...insert content of chapter tab here </$set> Then, inside you sub-sub-tiddler you can write this to get a reference to the current chapter: <$text text=<<currentChapter>>/>: My section name > I am guessing there may be a clever way to put the Chapter title into a field and then use it in the filter expression but I am still struggling to grok the wikitext syntax. You were on the right track, except that we use a variable rather than a field. Tiddler field values are global across the entire wiki, while variable values are assigned to specific portions of the widget render tree. So, any value that needs to be different in different areas of the render tree needs to be a variable. Best wishes Jeremy. On Thu, Jul 24, 2014 at 10:20 PM, Richard Smith < [email protected]> wrote: > Suppose I have a tiddler that generates tabs from a tag. > > <<tabs "[tag[Chapter]]" "Chapter1" "$:/state/chapter">> > > And each of those tab-tiddlers also generates tabs, containing sub-sections > > <<tabs "[tag[Chapter1]tag[Sections]]" "VideosTab" "$:/state/section" > "tw-vertical">> > > And each of those also generates tabs, containing individual pieces of > content > > <<tabs "[tag[Chapter1]tag[Section1]]" "Subtraction" "$:/state/section1tid" > "tw-vertical">> > > -- > Is there a way to alter the text of the bottom tiddler so that instead of > "Chapter1" it contains a reference to the Chapter as selected at the top > level. > > ie; > > <<tabs "[tag[ -reference- ]tag[Section1]]" "Subtraction" > "$:/state/section1tid" "tw-vertical">> > > This would let me re-use the code at levels two and three. I have tried > many combinations of magical punctuation but can't seem to find one that > works. > > If I drop the top level of my construct and instead have a tiddler for > each chapter then the transcluded content in the tabs remains in the > context of each chapter, meaning that if I write {{!!title}} at the bottom > level, I get the title of the correct chapter, but I can't include this in > the filter expression. > > I am guessing there may be a clever way to put the Chapter title into a > field and then use it in the filter expression but I am still struggling to > grok the wikitext syntax. > > PS: I am very keen to help the community with efforts to better document > TW - is anybody actively working on this atm? > > Regards, > Richard > > -- > 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/d/optout. > -- Jeremy Ruston mailto:[email protected] -- 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/d/optout.

