Tags:
create new tag
, view all tags

Bug: Links generated by %TOC% don't match anchors generated with ExplicitNumberingPlugin

The link references generated by %TOC% don't match the "name=" anchors generated when using the ExplicitNumberingPlugin.

Test case

Environment

TWiki version: TWikiRelease03Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache 2.0
Perl version: 5.8.4
Client OS: Windows XP
Web Browser: Firefox

-- TomDoerr - 26 Sep 2005

Impact and Available Solutions

Follow up

Fix record

The quick fix for my situation was to add this line to the makeAnchorName subroutine in Render.pm: $anchorName=~s/^(\d+_)*//; (and THEN reduce to 32 char limit).

Discussion

However, if the proper thing to do is INCLUDE the section numbers in the links and anchors, then someone (me?) will have to dig into the ExplicitNumberingPlugin code to ensure that those anchors are being created in a consistent manner that %TOC% expects...

-- TomDoerr - 26 Sep 2005

Tom, please raise this bug in ExplicitNumberingPluginDev, and hopefully the author of that plugin will pick up on it.

-- CrawfordCurrie - 27 Sep 2005

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2005-09-27 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.