Icon
Join thousands of Atlassian users for an unforgettable week of knowledge sharing, product training, networking, and fun. Atlassian Summit is Oct 10 - 13 in San Jose, CA – Register soon before tickets sell out.
 
1
0
-1

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 ??

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      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.

        CommentAdd your comment...