Tags:
create new tag
, view all tags

Question

I want to link to a heading but when I either use square brackets or HTML anchors, I either lose the topic in the TOC or the bracketing is included in the header.

Environment

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

-- DanielSears - 31 Jul 2007

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.

Not completely sure what you are saying, but to link to a heading, you can either use something like this:

Heading 1

Heading 2

#Heading_1

HowToLinkToAHeading#Heading_1

Note the underscore conversion. The anchors for long headings will also get truncated. View source on the resulting HTML if you aren't sure what it got converted to.

-- JustinLove - 07 Aug 2007

You can also add a custom anchor just before the heading, such as:

#HeadingOne
---++ Heading 1

See TextFormattingRules on anchor syntax.

-- PeterThoeny - 02 Oct 2007

 
Change status to:
Topic revision: r3 - 2007-10-02 - PeterThoeny
 
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.