Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Confirmed.

Anchor
Links
Links
Links

You can create links to pages, blog posts, anchors, attachments, external websites, JIRA issues and more.  Links can be text or images, and can be added in many different ways.

Links to pages within weCollaborate site are relative, which means that you can move pages and rename pages without breaking links. 

This page explains the most common ways to create links. 

To insert a link on a page:

  1. Select some text or position your cursor where you want to insert the link
  2. Choose Link on the toolbar or use the keyboard shortcut Ctrl+K
  3. Select a page, blog post or attachment, or enter an external URL (see below for how to link to particular types of content)
  4. Enter or modify the link text (this is the text that will appear on the page. If this field is left blank, the page name or URL will be used as the link text.)
  5. Choose Insert

Alternatively you can type followed by the page or attachment name. Autocomplete will suggest matching items for you. 

You can also paste a URL directly onto your page. Confluence will automatically create the link, and if the URL is for a page in the current site, the page name will be set as the link text.

  1. Select an image on your page
  2. Choose Link on the Image Properties toolbar
  3. Select a page, blog post or attachment, or enter an external URL (see below  for how to link to particular types of content)
  4. Choose Insert


  1. Select the link text or image
  2. Choose Edit from the link properties toolbar
  3. Modify the link and choose Save
  1. Select the link text or image
  2. Choose Unlink from the properties toolbar

Anchor
Link to specific types of content
Link to specific types of content
Link to specific types of content

weCollaborate supports many methods for creating links. Some of the common ones are listed here. 


Type of linkWays to do this
Link to a page

Choose Link > Search then enter part of the page name.

Choose Link > Recently viewed and select a page from the list.

Type [ and enter part of the page name then select the page from the list.

Paste the URL of the page onto your page (weCollaborate will automatically create the link).

Link to a page in another space

Choose Link > Search enter part of the page name and select All Spaces from the drop down.

Choose Link > Advanced then enter the space key followed by the page name spacekey:mypage.

Type [ and enter part of the page name then select the page from the list. 
(you can hover over each suggestion to see which space the page is from).

Link to a blog post

Choose Link > Search and enter part of the blog post name.

Type [ and enter part of the blog post name then select the blog post from the list.

Link to an attachment or image on this page

Choose Link > Files then upload or select an attachment from the list.

Type and enter part of the attachment file name then select the attachment from the list.

Link to an attachment on another page

Choose Link > Search and enter part of the attachment name.

Type [ and enter part of the attachment file name then select the attachment from the list
(you can hover over each suggestion to see which space the page is from).

Link to a website

Choose Link > Web Link then enter the website URL.

Type or paste the URL onto the page (weCollaborate will automatically create the link).

Link to an email address

Choose Link > Web Link then enter the email address.

Type or paste the email address onto the page (weCollaborate will automatically create a 'mailto:' link).

Link to an anchor on a page

Choose Link > Advanced then enter the anchor name in one of the formats below.

For an anchor on this page: #anchor name.

For an anchor on another page in this space: page name#anchor name.

For an Anchor on another page in another space: spacekey:page name#anchor name.

See Anchors for more information on using anchors.

Link to a heading on a page

Choose Link > Advanced then enter the heading in one of the formats below. Heading text is case sensitive and must be entered without spaces.

For a heading on this page: #MyHeading.

For a heading on another page in this space: Page Name#MyHeading.

For a heading on another page in another space: spacekey:Page Name#MyHeading.

Be aware that these links will break if you edit the heading text. Consider using the Table of Contents macro or an Anchor instead.

Link to a comment on a page

Go to the comment, right click the Date at the bottom of the comment and copy the link. Paste the link directly onto your page or choose Link > Web Link and paste in the URL.

Type [$ then enter the Comment ID ('12345' in this example):  [$12345]

Link to an undefined page 
(a page that does not exist yet)

Choose Link > Advanced then enter the new page name (a page will be created on click).

Type [ then enter the new page name then choose Insert link to create page .

See Undefined Page Links for more information on undefined pages.

Link to a personal space or user profile

Choose Link > Search then enter the user's name and select their personal space homepage or their profile from the list.

Type then enter the user's name and select their personal space homepage or their profile from the list.



Anchor
Link to weCollaborate pages from other websites
Link to weCollaborate pages from other websites
Link to weCollaborate pages from other websites

The best way to link to a weCollaborate page from outside weCollaborate, for example from another site or in an email, is to use the share link which is a permanent URL. This ensures that the link to the page is not broken if the page name changes.

To access the permanent URL for a page:

  1. View the page you wish to link to.
  2. Choose Share.
  3. Copy the Share link.

You do not need to use the share link to link to pages within your weCollaborate site. weCollaborate automatically updates links when you rename or move a page to another space. 

If you want to link to specific content such as anchors, headings or comments you need to use the following link syntax.  Note that there are no spaces in the page name, anchor name or heading text.

In the examples below, the anchor name is 'InsertLinkAnchor' and the heading text is 'Insert a link'. 

Some things to note when linking to anchors from a website or email message:

  • The page name is repeated in the URL, after the # sign. The second occurrence of the page name is concatenated into a single word, with all spaces removed.
  • There is a single dash (hyphen) between the concatenated page name and the anchor name.
  • The anchor name in the full URL is concatenated into a single word, with all spaces removed.
  • The anchor name is case sensitive. You must use the same pattern of upper and lower case letters as you used when creating the Anchor.

Anchor
Link to a comment
Link to a comment
Link to a comment

You can add a link to a comment by using the comment URL (a permanent link), or by using wiki markup to link to the Comment ID.  

To find out the comment URL and comment ID:

  1. Go to the comment you wish to link to
  2. Choose the Date at the bottom of the comment and examine the URL

The number after 'comment-' is the Comment ID. An example is shown here. 

https://confluence.atlassian.com/display/DOC/Working+with+Links?focusedCommentId=368640803#comment-368640803

You can use wiki markup directly in the editor to link to a comment. Enter [$ followed by the Comment ID, for example [$12345] where '12345' is the Comment ID.

If you have configured shortcut links on weCollaborate site, then you can link to an external site using a shortcut link that looks like this:CONF-17025@jira.

To add a shortcut link using the 'Insert Link' dialog:

  1. Choose Link > Advanced and enter or paste the shortcut link into the Link field (shortcut links are case-insensitive)
  2. Modify or enter link text (this is the text that will appear on the page)
  3. Choose Insert

You can also type '[' and choose Insert Web Link > Advanced  to enter a shortcut link.

See Configuring Shortcut Links for more details.

Anchor
Trackback
Trackback
Trackback

Trackback enables two sites can stay informed each time one site refers to the other using trackback 'pings'.

In weCollaborate, Trackback can be enabled by a site administrator in the Administration Console. When Trackback is enabled, any time you link to an external webpage that supports Trackback Autodiscovery, weCollaborate will send a Trackback ping to that page to inform it that it has been linked to.

weCollaborate pages also support Trackback Autodiscovery, and when Trackback is enabled, can receive trackback pings sent by other sites.

To see who has sent a Trackback ping to a weCollaborate page:

  1. Go to the page
  2. Choose Tools > Page Information

Any Trackback pings the page has received will be listed under the page's Incoming Links.

Anchor
Anchors
Anchors
Anchors


You can use anchors to enable linking to specific locations on a page, and they can be especially useful for allowing your readers to navigate to specific parts of a long document. Anchors are invisible to the reader when the page is displayed.

There are two steps to using an anchor:

Anchor
Create the anchor
Create the anchor
Step 1: Create the anchor

Add the Anchor Macro to mark the location you want to link to:

  1. Do either of the following in the weCollaborate editor:
    • Choose Insert > Other Macros, then find and select the Anchor macro
    • Type { and the beginning of the macro name, then select the Anchor macro
  2. Enter the Anchor Name (For example, 'bottom' or 'important information')
  3. Choose Insert

Anchor
Macro options (parameters)
Macro options (parameters)
Macro options (parameters)

Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in weCollaborate storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).

Parameter

Default

Description

Anchor Name

None

This is the anchor name that you will use when creating the link.

  • The anchor name can include spaces. weCollaborate will remove the spaces automatically when building a URL that points to this anchor.
  • The anchor name is case sensitive. You must use the same pattern of upper and lower case letters when creating the link as you used when creating the Anchor macro.

Anchor
Create a link to the anchor
Create a link to the anchor
Step
 2: Create a link to the anchor


You can link to an anchor from:

  • A page on the same weCollaborate site. The link may be on the same page as the anchor, another page in the same space, or a page in another space on weCollaborate.
  • Another web page or another Confluence site, using a specifically formatted URL.

Link to an anchor on the same site:

  1. Select some text or position your cursor where you want to insert the link
  2. Choose Link in the toolbar or press Ctrl+K
  3. Choose Advanced and enter the anchor name in the Link field, following the format below.

    Anchor locationLink syntax for anchorExamples
    Same page#anchor name

    #bottom

    #important information

    Page in same spacepage name#anchor name

    My page#bottom

    My page#important information

    Page in different spacespacekey:page name#anchor name

    DOC:My page#bottom

    DOC:My page#important information


  4. Enter or modify the Link Text (this is the text that will appear on the page. If this field is left blank, the page name or URL will be used as the link text)
  5. Choose Save


  • Anchor names are case sensitive
  • Enter page and anchor names with spaces when you link to them in the same site.
  • If you're linking to an anchor on a different page that has special characters in its name, where the URL displays a page ID rather than a name, you should still enter the page name when linking to it

Screenshot: The 'Advanced' option in the link dialog


Link to an anchor from another web page  site:

Use a full URL in the following format:

Notes about the full URL:

  • The page name is repeated in the URL, after the # sign. The second occurrence of the page name is concatenated into a single word, with all spaces removed.
  • There is a single dash (hyphen) between the concatenated page name and the anchor name.
  • The anchor name in the full URL is concatenated into a single word, with all spaces removed.
  • The anchor name is case sensitive.
  • If the page name contains special characters, where the URL displays a page ID rather than a name, the link to an anchor will look more like this http://myconfluence.com/pages/viewpage.action?pageId=54689987#Test-page1!-anchor 
    In this example the page title is Test - Page 1! and the anchor name is anchor.

Anchor
Notes
Notes
Notes

  • Table of contents on a page: Consider using the Table of Contents Macro to generate a list of links pointing to the headings on the page. The list of links will appear on the page, and will be automatically updated each time someone changes the wording of a heading.
  • Linking to headings: You can link directly to the headings of a page. See Links. However, if someone changes the wording of a heading, those direct links will be broken. Use the Anchor macro to ensure a lasting link within the body of a page.
  • Site welcome message: If you are adding an anchor to a page that you are using in the site welcome message, you can only link to that anchor from another page. Internal links within that page will not work.
  • Templates: When you are previewing a template, a link to an anchor is displayed as a 'broken' link. However, when you create a page using the template the resulting page will have the correct link.