Currently, I am using code [toc] in the node to show table of contents. But I would like to change its title from "Table of Contents" for each specific page. I understand that I can change default title from input format configuration page but how can I define unique title for each specific page.

Comments

AlexisWilke’s picture

himagarwal’s picture

I tried following commands and its not working.

[toc title=<string>;]
[toc title=<string>]
[toc title=string;]
[toc title=string]

However, when I only use [toc] it shows the default title. Am I doing something wrong?

AlexisWilke’s picture

himagarwal,

I'm not too sure what doesn't work. If I write something like:

[toc title=Summary;]

Then the title of the toc is now "Summary". Is that not what you wanted?

Thank you.
Alexis Wilke

himagarwal’s picture

Yes, that is what I want and I don't know why isn't that working.

If I use exactly the same code as below:

[toc title=Summary;]

it still shows the default title defined under input format configuration.

AlexisWilke’s picture

Did you by any chance turn off this flag in your Input filter:

"Allow users to override the settings within the table of contents tag itself"

Because then the parameters in the [toc] tag are totally ignored.

Thank you.
Alexis Wilke

himagarwal’s picture

"Allow users to override the settings within the table of contents tag itself" option was unticked.

It works now, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.