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!
Community moderators have prevented the ability to post new answers.
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.
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
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Space Admin"->"Themes"->"Current theme"->"Configure theme". It is in space admin tools, not in confluence admin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
We use the documentation theme, so I wasn't able to get this to work.
Thanks though!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
<div id="main-content" class="wiki-content"> $body </div>
and change to
<div id="main-content" class="wiki-content"> <a id="link-to-page-link" href="/confluence/pages/viewinfo.action?pageId=${page.id}" rel="nofollow" class="active" title="Link to this Page"> <span>Link to this Page…</span> </a> $body </div>
assuming you confluence runs under /confluence/ web context
Important: this will be applied to ALL non documentation theme pages
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.