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

Would like the labels to be on top of pages instead of the bottom. Is this possible?

Yasushi Shiba July 3, 2011

Hello.

I'm a newbee on the forum but I've been using Confluece for 2+ years.

Is this possible? I would like this since we put the status/condition of a page in the label and the pages could be very long and we would like to avoid scrolling down (which can take time) to find the labels.

It seems currently not possible. How shoud I proceed?

Thank you for your support.

Best regards,

Yan

6 answers

1 accepted

6 votes
Answer accepted
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 3, 2011

Browse to:

Confluence Administration | Look & Feel | Layouts

in the Content Layouts section, edit Page Layout.

Move this line:

#parse ("/labels/labels-editor.vm")

...below this line:

#parse ("/decorators/includes/page-metadata.vm")

That's it. If you're using a custom theme, then you'll need to edit the page.vmd file in your theme.

Colin Goudie
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 3, 2011

Yan, checkout the link to Layout in the space's Space Admin. You can do it there as well I think

Yasushi Shiba July 3, 2011

Dear David et all,

Thank you very much for the quick answer (amazing speed!)

I was hoping that the change could be made in a particular space only (the theme type of "Document"), not the whole server. (as a slight change could "shock" the 100's of other users). Is this possible?

Thank you again.

- Yan

David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 3, 2011

I think you can only change it in...

Space Administration | Look and Feel | Layout

...if you're using the default theme.

Otherwise, you get a message like this:

"You can not customise the site look and feel while a theme is active. You must first disable the currently configured theme."

If that's no good, the a custom theme containing just an edited version of page.vmd is the way forward.

Colin Goudie
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 3, 2011

I think if the global theme is the 'default Confluence theme' then you can edit it it also in Spaces. I haven't tested it, but I would assume then that this only affects that space, but ..... maybe not

2 votes
Colin Goudie
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 29, 2011

I'd think you'd need to download the documentation theme plugin, make your chnages, rebuild and install in your instance

https://studio.plugins.atlassian.com/source/browse/DOC

Terence McGhee July 30, 2011

Thank you very much.

2 votes
Colin Goudie
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 3, 2011

What theme are you using? If you are using the 'default theme' you can adjust the page layout by going to Admin->Look and Feel->Layouts

You edit the Page Layout under Content Layouts. You'll see where the body is defined and you can move the label related markup above it.

<div class="wiki-content">
$body
</div>

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title
$trackbackUtils.getPingUrl($page))

#parse ("/labels/labels-editor.vm")
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 3, 2011

Ha! You got there first. Thanks for the vote :)

0 votes
andres_collart January 2, 2020

How do you do this in the latest version of Confluence? I don't see the Layouts option anymore.

0 votes
Terence McGhee July 29, 2011

What if a person is using "Document" theme? What page.vmd file needs to be altered in this case? I searched high and low, but couldln't find a "themes" directory.

I would appreciate any help.

Thanks!

0 votes
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 3, 2011

If you want it for just one space, then try moving the labels div with some javascript...

Browse to...

Confluence Administration | Look & Feel | Custom HTML

...in At end of the BODY, paste this code:

<script type="text/javascript">
AJS.toInit(function(){
if (AJS.params.spaceKey == "YOUR-SPACE-KEY"){ // add the specific space key here
AJS.$('.page-metadata:first').after( AJS.$( '#labels-section') );
}
});
</script>


// Unfortunately, this little bit of javascript will get loaded on every page, so a custom theme would really be best.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events