I would like to overrid the live search functionality but I can't seem to find the vm file that renders the search page.
Im using confluence 5.5
I've tried to look in the source code and I can find the action Java file, but not the associated vm file.
And for future reference how do I find vm files that associated with actions?
Thanks!
Community moderators have prevented the ability to post new answers.
<action name="dosearchsite" class="com.atlassian.confluence.search.actions.SearchSiteAction"> <interceptor-ref name="validatingStack"/> <result name="error" type="velocity">/search/searchsite.vm</result> <result name="input" type="velocity">/search/searchsite.vm</result> <result name="success" type="velocity">/search/searchsite.vm</result> </action>
You will find them in xwork.xml, which can be extracted from atlassian-confluence-x.x.x\confluence\WEB-INF\lib\confluence-x.x.x.jar
Thanks for the answer, this is actually what I have as well I am having a probelm, when I use an action in my plugin and pint to the same vm file I get the old version of the search page.
This is the xwork part in my xml:
<xwork name="luckysearchaction" key="luckysearchaction"> <package name="livesearch" extends="default" > <default-interceptor-ref name="defaultStack" /> <!-- dosearchsite --> <action name="doluckysearch" class="com.wikistrat.confluence.extra.livesearch.SearchSiteAction"> <interceptor-ref name="validatingStack" /> <result name="error" type="velocity">/search/searchsite.vm</result> <result name="input" type="velocity">/search/searchsite.vm</result> <result name="success" type="velocity">/search/searchsite.vm</result> <result name="success_redirect" type="redirect">${redirectPath}</result> </action> </package> </xwork>
Any chance you can tell what am I doing wrong? thanks!
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.