Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Search page with taxonomy filter

Started by Daniel Wrightson 7 years ago · 2 replies · 822 views
7 years ago

I'm building a villa listing site and I have various pages listing 'types' of villas - or villas in a certain 'area' or of a certain 'size. That's all fine. What I can't seem to work out how to do is build a dynamic search page where clients can tick which 'area's they'd like, or the 'size', or the 'features'. Basically something like the Advanced Search panel at the right of this page. Is this built with Advanced Search plus added options?

7 years ago

Hi Dan,

If what you want is filtering a collection of pages with pré defined keywords. Then architecturing a taxonomy https://learn.getgrav.org/16/content/taxonomy based on your business then using the https://github.com/getgrav/grav-plugin-taxonomylist/ plugin should do the job.
If what you want to achieve is facet search, where your search engine's results are displayed alongside with matched taxonomy, there is nothing working out of the box as far as I know. I sort of managed to do that combining tntsearch plugin, adding the taxi in the custom fields, then filtering the results with some javascript.

7 years ago

Thanks - that's the conclusion I've come to as well. I've only just re-started coding after a 10 year pause so I'll warm up a little more before I have a crack at it. It seems to be something people would find useful...

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 46 1 week ago
Plugins · by Xavier, 4 weeks ago
2 55 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1181 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 49 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 73 2 months ago