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 ??
Community moderators have prevented the ability to post new answers.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.