Editing the Main.vmd

MPal Pal March 22, 2012

Hi All,

I need to edit the main decorator of the documentation theme. Confluence frustratingly doesn't allow me do this through the web interface. It throws an error:

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

Is there any workaround for this please? I just need to include a few bits to the header of the documentation theme.

Thanks

3 answers

0 votes
Giuliano C.
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2012

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

This is an expected behavior on Confluence. You can only customise a layout from the layout default theme. Also, to better understand how this customising question works or how to create a theme, refer to the following articles:

About the main.vmd, it's used to control the header and footer of each page, not the page specific presentation logic. And we have the Decorator Macro that works with it in customisations, please, see the following page:

Also, If the layout has changed so extensively as to not be visible, you can browse to the URL directly:

http://<confluence base url>/admin/resetdecorator.action?decoratorName=decorators/main.vmd

Substitute the base URL and the appropriate vmd file.

Don't forget to perform a backup of those files before the changings. Hope it helps you.

Kind Regards

Jimmy P
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 25, 2014

I managed to find main.vmd in the decorators folder -- then tried to make a simple edit. However, the changes did not load when I refresh the page in the browser.

I have even tried to restart Confluence server, no luck! It still didn't pick up my changes (as if it loads from cache or somewhere else).

Any ideas how I can make changes to the main.vmd and get it applied? Thanks!

0 votes
AnisB September 21, 2012

I have the same problem. I would like to add some macros to the page layout and it is not allowed. I tried to add a modified docmentation theme but that didn t work too

0 votes
MPal Pal March 25, 2012

Is there any way to change the Main.vmd of the documentation theme pls?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events