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

Problem with page 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.
August 4, 2011

I have a macro that renders a button an a page. This button invokes an action. This action redirects to the next action using following result:

<result name="publishForm" type="redirect">/plugins/change-state/editpageparams.action?pageId=${pageId}</result>

The next action render a velocity template, which uses a page decorator with a default mode:

#applyDecorator("root")
#decoratorParam("helper" $action.helper)
#decoratorParam("context" "page")

However, the rendered page looks like bad, as if no styling was applied. I want at least to display breadcrumbs and a page title. Does anyone know how to make a page decorator work in a custom page ??

1 answer

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.
August 5, 2011

Actually I found out that every action which renders velocity template using a page decorator must be in the /pages namespace for this to work properly.

TAGS
AUG Leaders

Atlassian Community Events