Make a specific catalog item only appear in search results (not through categories list) as the last item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2022 03:32 AM
Hi there,
I'm wondering if it's possible (and if so, how) to have a menu item that only appears in search as the last result. I would like to be able to add a catalogue item that acts as last resort for when users cannot find a request that suits their needs. I would like it to appear at the end of every search bar result list so that once a user has looked, they can then use this. I don't want it to be in the categories or to appear as the top result (unless there aren't other results) to ensure that the catalog is being searched first as quite often there are items that match the request.
Hopefully I've explained what I mean! Any help would be fantastic, thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2022 04:35 AM
Hi, I imagine there will not be a catch-all, single request, but rather maybe a default request per category? If that's the case you could consider adding an extra custom field to the catalog item to mark it as "Default", or perhaps this could be on Category level by having a reference to the default.
Just trying to highlight that ideally this should be configurable.
To handle the search itself, I think this would require a customization of the SP search widget, or perhaps, modification of the relevant search source.
E.g. in the search source there is a script part which returns the results. You could add the default item object there, based on above config. Sorry that I do not have the time to try it out and provide more detailed suggestions but perhaps it will be a start...