Hi Dave

> Thank you to everyone who posted. S.S.'s solution was exactly what I needed. 
> Thanks Jeremy for the explanation, too!

The disadvantage of SS’s solution is that it requires you to override a core 
tiddler. The correct way to do it is to use a custom template parameter for the 
TOC macro. The default template contains:

          <h1><<toc-caption>></h1>
          <$transclude mode="block">$missingText$</$transclude>

So, you’d want to add a template parameter pointing to a tiddler containing:


          <h1><$text text=<<currentTiddler>>/></h1>
          <$transclude mode="block">$missingText$</$transclude>

Best wishes

Jeremy.


> 
> Dave
> 
> On Wednesday, February 6, 2019 at 5:43:02 PM UTC-6, David Gifford wrote:
> Hi all
> 
> How would I tweak $:/core/macros/toc (or something else) so that each tab in 
> the toc would show the caption field of the tiddler, but the title within the 
> tab contents would show the longer title field of the tiddler?
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/369b5c20-5a66-4f53-9b8c-7a1cdec58d15%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/369b5c20-5a66-4f53-9b8c-7a1cdec58d15%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/6A7850DA-6B39-4263-830C-0A1BBE6FE8C0%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to