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

Applying a custom decorator

Sławomir Turlej
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 4, 2011

I have created a simple decorator module. However, on pages with this decorator applied there is no header, footer, menus. It seems that my custom decorator overrides other bundled decorators. What to do to apply a custom decorator module and keep other decorators working ??

Basically I need to run some macro on every page and I am trying to do this through a decorator.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Sławomir Turlej
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 6, 2011

I tried to use a plain decorator module with a pattern that matches all pages.

Actually, I have found out that what I need to do is to create a custom theme and in that theme override page.vmd with a layout module. That way I can put anything anywhere I want. Hovewer, I still don't know why applying a simple decorator from http://confluence.atlassian.com/display/CONFDEV/Decorator+Module removes all headers and footers and menus.

volalex
Contributor
August 8, 2011

Because it's not using global decoratio, you can add this into a head of decorator

<meta name="decorator" content="atl.general"/>

and header and footer will on the page when you load it

0 votes
volalex
Contributor
July 5, 2011

Can you provide more information about type of this decorator?

it's page.vmd or main.vmd? or another decorator?

TAGS
AUG Leaders

Atlassian Community Events