Hi S.S.

I have made the changes. And it works great! Thanks for both solutions.

On Thursday, February 7, 2019 at 7:07:57 PM UTC-6, S. S. wrote:
>
>
> David,
>
> It was not obvious to me what Tony & Jeremy meant by "using a template 
> parameter" as I was not aware of how it is used!
>
> If you look on the last line on the documentation for Table-of-Contents 
> Macros <https://tiddlywiki.com/#Table-of-Contents%20Macros>, it says:
>
> *template *
>          Optionally, the title of a tiddler to use as a template 
> <https://tiddlywiki.com/#TemplateTiddlers> for transcluding the selected 
> tiddler into the right-hand panel
>
> So the correct way is to create a template tiddler, say named : 
> *CustomTocTemplate*
>
> Put the following in that tiddler:
>
> <h1><<toc-caption>></h1>
> <$transclude mode="block">$missingText$</$transclude>
>
> Then when you define your Table if Contents, you do it similar to this:
> <$macrocall
>     $name="toc-tabbed-internal-nav"
>     tag="TableOfContents"
>     *template="CustomTocTemplate"*
>     selectedTiddler="$:/temp/toc/selectedTiddler"
>     unselectedText="<p>Select a topic in the table of contents. Click the 
> arrow to expand a topic.</p>"
>     missingText="<p>Missing tiddler.</p>"
> />
>
>
> Don't forget to undo the changes you made earlier by simply deleting the 
> edited shadow tiddler : *$:/core/macros/toc*
>
> Apologies for the earlier not so hot quick fix!
>
> Edits were just to clean up the line spacing
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f6bbce6c-4b0a-44c2-8ebf-a14cc8ebeac5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to