Download & Extend

Request to control TOC 'back to top' links by page

Project:Table of Contents
Version:6.x-3.6
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

The ability to provide 'back to top' links is very useful -- but not for every page that uses the TOC function.
The current implementation provides only a global control for all pages on the site. Can we add an argument to the TOC function so that the 'back to top links' can be switched on or off on a per-page basis?

Comments

#1

Hi dwhutton,

I know. That's like a certain number of flags that are not available when parsing the headers.

There is a concept problem from the original version. That is, the first author thought of offering the [toc] tag and that meant a user could have as many TOC in his page as he wanted knowing that each could have different parameters. That makes things a little complicated... but I can part the headers only once, and the [toc] is parsed later to generate the table. So more or less, that information is not available at the time I generate the Back to Top info.

I have been thinking to get the info from the first [toc] since in 99.999% of the time, I'd bet no one uses [toc] more than once and when it happens, they most probably use the same flags in each instance.

Thank you.
Alexis