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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-10-02 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.