Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Confluence 5.4: How to recreate the "Link to this page..." option on each page.

R Donato
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2014

Hello,

We are hiding the Tools menu from anonymous users. Is there a way to automatically add a button to all the pages that contain their individual tiny links? Or do I have to add the tiny links button manually?

Thanks!

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2014

Will answer as a new "answer" so it is easier to use proper formatting, so it is easier to follow

 

Probably a combo: user macro and small customization of documentation theme will do the trick then.

  1. Create new user macro with the following body (you can customize it later, but here is the prototype)

    ## Macro title: Link2Page
    ## Macro has a body: N
    ## Body processing: Selected body processing option
    ## Output: Selected output option
    ##
    ## Developed by: Vertuna LLC
    ## Date created: 17/12/2014
    <a id="link-to-page-link" href="/confluence/pages/viewinfo.action?pageId=${content.id}" rel="nofollow" class="active" title="Link to this Page"><span>Link to this Page…</span></a>

    The most important part is which starts with <a id="

    I named the macro as Link2Page, could be anything you want, main thing is that you need to include it in documentation theme customizations

  2. Go to /confluence/spaces/doctheme/configuretheme.action?key=SPACE_KEY for your space you need to apply this customization and find either header or footer (not so many options there though) and place the following:

    {info}
    {link2Page}
    {info}

    I wrap my user macro inside Info block (link2Page macro inside Standard Confluence Info macro), but link2Page could be used as standalone, no problem.

  3. Save it and you have a banner with "link to page" on every page on your Confluence space

 

R Donato
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2014

Hello, and thanks for supplying another way to do this. I created the macro. For step 2, how do I navigate to the location? The link even with the correct space key added is coming up missing. I went to cog > Theme Configuration > Designs. I then clicked Edit on the design. There is Top Section which I tried and it didn't work, Bottom section, and Styles. Is this the location you mean? Or is there another one?

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2014

"Space Admin"->"Themes"->"Current theme"->"Configure theme". It is in space admin tools, not in confluence admin

0 votes
R Donato
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2014

Hi, 

We use the documentation theme, so I wasn't able to get this to work. 

Thanks though!

0 votes
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2014

Probably the easiest way would be to customize the Layouts

Go to /confluence/admin/editdecorator.action?decoratorName=decorators/page.vmd (you have to be confluence admin)

 

find the following

&lt;div id="main-content" class="wiki-content"&gt;
           $body
  &lt;/div&gt;

and change to

&lt;div id="main-content" class="wiki-content"&gt;
           &lt;a id="link-to-page-link" href="/confluence/pages/viewinfo.action?pageId=${page.id}" rel="nofollow" class="active" title="Link to this Page"&gt;
                &lt;span&gt;Link to this Page…&lt;/span&gt;    &lt;/a&gt;
           $body
  &lt;/div&gt;

assuming you confluence runs under /confluence/ web context

Important: this will be applied to ALL non documentation theme pages

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events