grav-plugin-simplesearch icon indicating copy to clipboard operation
grav-plugin-simplesearch copied to clipboard

Multiple field ?

Open JibsouX opened this issue 8 years ago • 4 comments

Hy i have only began to work with Grav and it's verry promissing ! while i have set the blog system it auto-add simplesearch, thats a good thing but for my project i want to have that sort of form : 1 field for text input (like the plugin provide) and 2 or 3 others fields (like taxonimies) that allow a more accurate search

you can see an example : capture 2016-08-21 a 09 32 59

i have seen this plugin (https://github.com/MaZderMind/grav-plugin-urlparamfilter) but i don't know if it's possible to make all that work together if it's needed ?

Thanks in advance for all your work, and i really hope all that is possible :) !

JibsouX avatar Aug 21 '16 07:08 JibsouX

This plugin provides text search on the site.

It would be nice to allow filtering by some kind of taxonomy, but currently this is not a feature provided.

Marking as an enhancement.

flaviocopes avatar Aug 22 '16 10:08 flaviocopes

Thank's for your rapid response ! If you have a idea to "how create this functionality" i'm all ears !

JibsouX avatar Aug 22 '16 18:08 JibsouX

You can change the plugin to do anything, but requires some knowledge of how the plugin works, so maybe you can start by forking the plugin, tweaking the functionality by first adding the select boxes in the search form, and then see how to grab those values and filter the results accordingly - no idea what's your PHP expertise so how complex/doable this can be varies.

flaviocopes avatar Aug 23 '16 13:08 flaviocopes

I'm good in php i have already work with Smarty (pretty same syntaxe) but it's my first try with Grav so i don't understant verry well the relation between .twig .dm ..... so testing it is !

JibsouX avatar Aug 23 '16 20:08 JibsouX