Possibility To Change The Title In TOC

Description

Now, I would really like to have the possibility to change the text in TOC — right now the title is Table of Contents and that's it! But my site is not in English, so it is really ugly to have everything written in Serbian and in Cyrillic, except this one… If there is a possibility to change the title in Bibliography and in Footnotes, why not add the same possibility to TOC? I would really like to be able to do this:

[[toc title="textofmyownchoice"]]

as there is a possibility here:

[[bibliography title="textofmyownchoice"]]

or

[[footnoteblock title="trextofmyownchoice"]]

or

title="" if I don't want to have anything written.

Links to forum Posts


rating: +7+x

Comments

kawinakawina 1211334445|%e %b %Y, %H:%M %Z|agohover

I most definitely second that!

unfold by kawinakawina, 1211334445|%e %b %Y, %H:%M %Z|agohover
Re:
ErichSteinboeckErichSteinboeck 1211355286|%e %b %Y, %H:%M %Z|agohover

I second that, too!!

The [[toc]] parsing code already accepts [[toc attributes]], but the rendering code simply ignores them.

unfold Re: by ErichSteinboeckErichSteinboeck, 1211355286|%e %b %Y, %H:%M %Z|agohover
BrunhildaBrunhilda 1211899954|%e %b %Y, %H:%M %Z|agohover

One of you two forgot to vote….

unfold by BrunhildaBrunhilda, 1211899954|%e %b %Y, %H:%M %Z|agohover
Re:
Helmuti_pdorfHelmuti_pdorf 1211912883|%e %b %Y, %H:%M %Z|agohover

I voted… .. :)

unfold Re: by Helmuti_pdorfHelmuti_pdorf, 1211912883|%e %b %Y, %H:%M %Z|agohover
Re:
BrunhildaBrunhilda 1211974415|%e %b %Y, %H:%M %Z|agohover

Thank you, Helmuti! :)

unfold Re: by BrunhildaBrunhilda, 1211974415|%e %b %Y, %H:%M %Z|agohover
Not only in TOCs but everywhere...
gerdamigerdami 1212321103|%e %b %Y, %H:%M %Z|agohover

Not only in TOCs but everywhere a English message is produced by a module or whatever.
With "textofmyownchoice" reduced to " " or "", one can make it not appear at all.


Indeed , the [[module Comments]] already accepts this syntax.

+ Commentaires
[[module Comments title=""]]

unfold Not only in TOCs but everywhere... by gerdamigerdami, 1212321103|%e %b %Y, %H:%M %Z|agohover
Re: Not only in TOCs but everywhere...
BrunhildaBrunhilda 1212395624|%e %b %Y, %H:%M %Z|agohover

Nope, TOC does not accept this. I think that it is the only module that stays as it is. I tried many times, and I have just tried it again, after reading your message. TOC stays in English… BTW, not only the title should be changed, but also the "fold/unfold" word…

last edited on 1212395639|%e %b %Y, %H:%M %Z|agohover by Brunhilda + show more
unfold Re: Not only in TOCs but everywhere... by BrunhildaBrunhilda, 1212395624|%e %b %Y, %H:%M %Z|agohover
workaround
mmclean89mmclean89 1213204781|%e %b %Y, %H:%M %Z|agohover

this is already possible with custom CSS and the include system:

Make a new page, perhaps called TOC.
On this page, put a [[toc]] inside a div (give the div a class name, like "tocdiv").
Using CSS, remove the div.title (in tocdiv) with display:none. The same can be done with the fold/unfold if you don't want it. Use FireFox Web Developer to get the precise CSS names.

Here's what the TOC page should look like:

[[div class="tocdiv"]]

**{$title}**
[[toc]]

[[/div]]

Now to insert a table of contents on any page, simply type: [[include toc title=MyCustomTitle]]

unfold workaround by mmclean89mmclean89, 1213204781|%e %b %Y, %H:%M %Z|agohover
Add a new comment
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.