The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

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

Frank Ruenagel
September 27, 2011

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
David at David Simpson Apps
Atlassian Partner
September 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 :)

briburt
Contributor
September 28, 2011

Thanks for that code snippet. Works perfectly!

0 votes
David at David Simpson Apps
Atlassian Partner
September 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.

briburt
Contributor
September 28, 2011

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.

Kenn North
December 4, 2011

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.

TAGS
AUG Leaders

Atlassian Community Events