Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

edit search result page

Gustav Karavas November 28, 2013

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?

2 answers

0 votes
Gustav Karavas December 2, 2013

Yeah, we are using Confluence 5.x. Perhaps, maybe someone else can help me to find a solution :/

0 votes
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 1, 2013

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>

Gustav Karavas December 2, 2013

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?

Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 2, 2013

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?

Gustav Karavas December 2, 2013

Yeah, we are using Confluence 5.x. Perhaps, maybe someone else can help me to find a solution :/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events