Tags:
create new tag
, view all tags

Question

Hi all. If you make a page with headings, and more than one heading has the same name, those headings will have the same anchor name. This means that, in a %TOC% section, clicking on any of the duplicated headings will go to the first section.

For example, the links for the "foo" and "bar" headings below are all the same, even though there are three distinct sections for each.

One possible solution would be to add unique suffixes to the anchors for duplicated headings. Not especially elegant, but it would work. :P

I haven't checked, but I'd guess that this is independent of OS, server, browser, etc.

Section 1

foo

bar

Section 2

foo

bar

Section 3

foo

bar

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: -
Web server: -
Perl version: -
Client OS: -
Web Browser: -
Categories: Platform

-- RyanBarrett - 17 Sep 2005

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

This is a known limitation, aka bug: TocFailsForIdenticalHeadingNames and TocUniqueName.

-- PeterThoeny - 20 Sep 2005

Does anybody know if this still is a problem in upcoming Dakar?

-- FranzJosefSilli - 20 Sep 2005

 
Topic revision: r3 - 2005-09-20 - FranzJosefSilli
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.