I'm looking for a way to edit the search results content. In our situation a search results in lots of attachments, since these attachments are just printscreens of our manual (with a filename that correspondents with the search) we would like to exclude the attachments by default.
Stated differently, our goal is that the search results on the '/wiki/dosearchsite.action' page only shows 'pages' content instead of 'all content' by default. Maybe in the future we would like to add 'questions' to the search results as well.
Hope anyone can help me. Thanks for your response in advance.
In the Custom HTML section of Confluence Admin you could add some javascript to to add a hidden input element to the form with the id of "quick-search" to specify the type.
<script>
AJS.$("#quick-search fieldset").prepend('<input type="hidden" name="type" value="page">');
</script>
We use the OnDemand version. Is it still possible to add the script you mention?
Thanks for your help :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Um, I'm not sure. Probably not, but just check in Confluence Admin -> Look And Feel. If there is an option for Custom HTML then yes you should be able to use it. I can't remember if that is enabled in OnDemand or not ... me thinks no.
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.
Currently, you can select a few options when it comes to searching in Confluence on the 'wiki/dosearchsite.action' page (including only selecting 'Pages' or 'Questions' content). Are you asking to have 'Pages' selected instead of 'All Content' by default when the search page loads up?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I'm indeed asking if it is possible to show only 'pages' by default instead of 'all content' when the page loads up.
We have this want since we use Confluence for manauls and documentation that is available for our external customers (anonymous users).
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.
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.