I want to change the way this file appears: /pages/viewrecentblogposts.action?key=SPACE
Is there a vm/vmd file in /confluence/decorators that governs this page? What is the best way to go about this?
Community moderators have prevented the ability to post new answers.
No, there is not really a decorator that the viewrecentblogposts.action uses, besides the root decorator.
What you could do is overwrite the action with a plugin and use your own velocity template instead of the one of Confluence
<xwork name="Custom View Recent Blog Posts" key="custom-blogpostactions">
<package name="pages" extends="default" namespace="/pages">
<default-interceptor-ref name="validatingStack"/>
<action name="viewrecentblogposts" class="com.atlassian.confluence.pages.actions.RecentBlogPostsAction">
<result name="error" type="velocity">/custom/viewrecentblogposts.vm</result>
<result name="success" type="velocity">/custom/viewrecentblogposts.vm</result>
</action>
</package>
</xwork
Perfect! I had to modify it slightly however:
<xwork name="Custom View Recent Blog Posts" key="custom-blogpostactions"> <package name="pages" extends="default" namespace="/pages"> <default-interceptor-ref name="validatingStack"/> <action name="viewrecentblogposts" class="com.atlassian.confluence.pages.actions.RecentBlogPostsAction"> <result name="error" type="velocity">/custom/viewrecentblogposts.vm</result> <result name="success" type="velocity">/custom/viewrecentblogposts.vm</result> </action> </package> </xwork>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@justin, it was a bad copy/paste example. Good thing your worked it out. I updated the answer :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Besides needing a code formatting block in the editor, the lack of formatting options evidenced by this comment made me want open this improvement: https://jira.atlassian.com/browse/ANSWERS-92
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.