Loading...
 
Skip to main content

Features / Usability


CustomSearch solution for modern knowledge base search interface (category buttons)

posts: 8654 France

Hello,

I've explored lately the CustomeSearch plugin options to allow 2 search filtering/search.
https://doc.tiki.org/PluginCustomSearch

To filters trackeritems I'm trying to setup something like we can find at Spotify support: https://support.spotify.com/us/
Categories being automatically populated. 😉

Screenshot 2024 03 09 At 9.38.27
https://tiki.org/display3541 (something is not working at this moment adding images on a forum post)

I played with this and Smarty templates (embedding plugin) and get close to it, but that is too complex (= fragile).

On the other, I can see a lot of parameters that should help to do such thing in the CustomeSearch plugin page but I can't figure exactly how to use parameters work.

Sharing light anyone ?

posts: 126892 United Kingdom

Hi @Bernard Sfez / Tiki Specialist

Not sure which parameters in custom search you're referring to, i think this will always have to be some custom code in a form template.

I'd add a list plugin of the categories you want to show as pictures/buttons (filtered on their parent category presumably) and link in the image for each one, or do a list of the images (by galleryId) and then add the category id, maybe in the description?

And add a little javascript to each one to put the categoryId in a hidden input on the form, something like:
{input _filter="categories" type="hidden" id="support-type"}

Does that make sense?