Confluence Docs 3.1 : Working with Anchors
This page last changed on Jun 01, 2009 by ggaskell.
Anchors are invisible to the reader when the page is rendered. Anchors are made up of two parts:
On this page: Usage with the Macro BrowserTo insert the anchor macro into a page using the Macro Browser,
Once you've found the anchor macro, click 'insert' to add it to your page. Usage with the Wiki Markup EditorThe following code creates an anchor called "here", but you can substitute this with whatever name you like. {anchor:here} Once an anchor is in the page, you can link to it by putting #here (or whatever anchor name you choose) at the end of a link pointing to that page. ParametersParameters are settings for Confluence macros that allow the user to control their content or presentation. The table below lists relevant parameters for this macro.
ExamplesIn the next example, there are two anchors in this page called "top" and "bottom", which you can link to like so: [#top] [#bottom] These links come out like this: top bottom. More examples follow. Linking to an anchor in the same page [#anchorname] Linking to an anchor in another page [nameofpage#anchorname] Linking to an anchor in a page in another space [spacekey:nameofpage#anchorname] Linking to headings Confluence treats all headings as anchors. So you don't have to place an anchor but simply link to it like this: [#textofheading]
Note that if you are adding an anchor to the site welcome message, it must be to another page. Internal-only links such as {anchor:bottom} will not render. RELATED TOPICSTake me back to the Confluence User Guide. |
![]() |
Document generated by Confluence on Dec 10, 2009 18:45 |