Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Template "No results found" modification

Stan April 22, 2020

Greetings,

 

I'd like to modify "No results found" template from search input. Is that possible?

 

Thanks

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 27, 2020

Hey Stan,

First some disclaimers - modifying files in your Confluence install can break your instance, cause weird display problems, and make your users unhappy. Definitely don't modify files in production; always use a test system to check changes, take backups, and be prepared for things to break. Modifying any files on the filesystem will entail modifying the files again after upgrade if you want to keep your customizations.

In Confluence 7.2 (this is probably the case in other versions that use the sidebar as well), the search results are managed through a javascript file at <confluence-install>/confluence/includes/js/search-results-grid-min.js (and you can see its non-minified version in the same folder at search-results-grid.js, although the non-minified version isn't served out). Making changes to this file will require restarting Confluence (to flush its internal cache) and hard-refreshing your browser (to clear your browser cache). In general, I would not recommend going this route as it's very likely you're going to break Confluence.

Instead, I'd recommend taking a peek at some previous answers to this question: https://community.atlassian.com/t5/Confluence-questions/Customize-search-result-page/qaq-p/1012463 - for example using an app to modify the page templates is going to yield much safer results.

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events