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

Hi,

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.

Frank

2 answers

1 accepted

1 vote
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:

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

..then save.

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

Thanks for that code snippet. Works perfectly!

0 vote
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 https://answers.atlassian.com/questions/21912/how-do-i-override-css-styles-in-the-documentation-theme
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

995 views 23 13
Join discussion

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