Documentation theme: Hard/Impossible to change layout of a theme


beginners question:

we simply want to push the reference to the last editor (line below header of a page) to the bottom of the page. This seems not to be possible without deeply step into theme generation? How do I change the template of a theme?

Or different asked: How can I achieve a editable documentation-theme-like Layout (with tree oh the left) without themes?

Why do you introduce themes, if they are not cusomizable?

Thank you.


2 answers

1 accepted

1 vote
Accepted answer
David Simpson Community Champion Sep 28, 2011

OK, try this:

To move the "Adding by/Last edited by" section to the end of the content for the Documentation Theme only...

Browse to Confluence Admin | Look and Feel | Custom HTML

In At the end of the HEAD, paste:

    AJS.$('body.theme-documentation .page-metadata').prependTo('#labels-section');

..then save.

It's much easier when you manipulate the DOM client-side :)

Thanks for that code snippet. Works perfectly!

0 votes
David Simpson Community Champion Sep 27, 2011

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

Browse to: Confluence Administration | Look & Feel | Layouts

in the Content Layouts section, edit Page Layout.

Move this line:

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

...above this line:

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

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

Where do you find the page.vmd file for a theme? All I can find is the one for the default theme located in the /confluence/decorators directory.

Let's hope that making such a simple change to a page layout does not involve downloading the jar file of the theme, making edits to the page.vmd in the jar file, and then redeploying the jar as a plugin. If so, that is a very cumbersome design, to say the least.

as described in this answer
that's exactly what is done. You create a new theme and upload it as a new jar plugin.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,157 views 4 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you