• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5878: Identical headings lead to generation of non-unique anchors

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine Render.pm Normal No Action Required   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

When using identical headings (e.g., derived from some kind of template), the automatically generated anchors will be non-unique.

A prominent example is the TWikiReleaseNotes04x02 topic as shipped with TWiki 4.2.1 which contains redundant Fixes and Enhancements sections (for 4.2.0 and 4.2.1, respectively). Using Firefox3, it is not possible to select the newer subsections from the TOC (NB the browser behaviour in this case is unspecified).

-- TWiki:Main/MarkusUeberall - 04 Aug 2008

Duplicate of Item1607 and Item5205

As a work around you can put a unique html comment after identical head lines. The URL generated by the TOC includes these characters

---++ Some header<!-- number1 -->

---++ Some header<!-- number2 -->

Trying it for real

Some header

Some header

Setting to no action since we have Item1607. I changed 1607 from enhancement to Normal. it is a bug - not an enhancement.

-- TWiki:Main.KennethLavrsen - 04 Aug 2008

ItemTemplate
Summary Identical headings lead to generation of non-unique anchors
ReportedBy TWiki:Main.MarkusUeberall
Codebase 4.2.1
SVN Range TWiki-5.0.0, Sun, 03 Aug 2008, build 17280
AppliesTo Engine
Component Render.pm
Priority Normal
CurrentState No Action Required
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-08-04 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback