How can I move the LIKE option to the top of the page?

Fabian Lopez July 17, 2012

I would like to have the new option LIKE/INLIKE on top of the page below the page name and not below the body.

Is this possible?

3 answers

1 accepted

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
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.
July 18, 2012

Fabian,

Try something like this:

<script>
  AJS.toInit(function(){
    AJS.$('#content').before(AJS.$('#likes-section'));
  });
</script>

Fabian Lopez July 18, 2012

Thanks Jobin, I tried to a global level with HTML and then space specific adding the code inside the html macro and inside the documentation theme configuration.

https://www.vxvista.org/pages/viewpage.action?pageId=65668419

it works great!

Thanks!

0 votes
Stefan Kohler
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.
July 17, 2012

Hey Fabian,

Currently it's not possible to controll where the LIKE button in Confluence is displayed.

Depening if you use something like a custom-theme for Confluence you might be able to change it yourself (by changing the templates) but for a plain-vanilla installation of Confluence it's not.

You could always do a feature request at http://jira.atlassian.com

Cheers,
Stefan

Fabian Lopez July 17, 2012

I am using Documentation Theme, I was able to change the location of the metadata by adding this code into the head html. I was hopping to do the same with the LIKE plugin :)

<script>
  AJS.toInit(function(){
    AJS.$('body.theme-documentation .page-metadata').prependTo('#labels-section');
  });
</script>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events