I want to edit the search result page if no result is found. I tried to edit the "search-results.vmd" without any success. I want to add some additional information to the standard sentences:
No results found for asdfasdfasdf. Please try one of the following suggestions:
- Use more general search terms orconsult the online documentationfor tips.
- If you are filtering by space, content, last modification date or contributor, try removing or adjusting the filter
Can someone help me?
Yeah, we are using Confluence 5.x. Perhaps, maybe someone else can help me to find a solution :/
This is the place to make changes. Maybe you did not edit the right spot in this VMD file? The place to edit it is in the "else" block at the bottom:
#didyoumean() $action.getText("search.no.results.found", ["<strong>${generalUtil.htmlEncode($queryString)}</strong>"]) <ul> <li>$action.getText("search.tip.general")</li> <li>$action.getText("search.tip.restrictions")</li> </ul>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Matthew,
this is exactly what I did, but without any success. Then I tried to rename the whole search-results.vmd and restarted the server, and still the same page appeared. So I think, the search-results.vmd is not integrated?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which version of Confluence are you using? I've tested this on 4.x, and it works, but maybe if you're using 5 they use a different decorator and just keep this file around for backwards compatibility?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, we are using Confluence 5.x. Perhaps, maybe someone else can help me to find a solution :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.