On a project i am working at (recipe website), I have stumbled upon a problem with XSLT Search.
Today the search works in the most important way - it finds what it should find. I have choosen the fields I would like to search in etc.
But now i would like to extend the search. Every recipe in my website I have given some tags, for example "Meat, chicken, fish" etc. Now I would like to add checkboxes in my search options so that I could filter the search and get more specific results. Here is where I would be happy if I could get some help.
I have added checkboxes manually in my form, giving them name etc, see example below.
If I check one of the boxes and press Search my urlstring says &tags=meat which seems right. But how do i make the connection in the xslt-file? Anyone done anything like this before?
I would really appreciate any help you guys could get me!
Xslt search
Hi guys!
On a project i am working at (recipe website), I have stumbled upon a problem with XSLT Search.
Today the search works in the most important way - it finds what it should find. I have choosen the fields I would like to search in etc.
But now i would like to extend the search. Every recipe in my website I have given some tags, for example "Meat, chicken, fish" etc. Now I would like to add checkboxes in my search options so that I could filter the search and get more specific results. Here is where I would be happy if I could get some help.
I have added checkboxes manually in my form, giving them name etc, see example below.
<input type="checkbox" name="tags" value="Meat">Meat
If I check one of the boxes and press Search my urlstring says &tags=meat which seems right. But how do i make the connection in the xslt-file? Anyone done anything like this before?
I would really appreciate any help you guys could get me!
Best regards,
Jesper
Hi, Jesper,
There's not a direct solution, but perhaps this will help
http://our.umbraco.org/projects/website-utilities/xsltsearch/xsltsearch-bugs/22104-Find-pages-by-tags
Also, if you're more familiar with Razor/C# than XSLT you might find ezSearch easier to modify for your needs.
cheers,
doug.
is working on a reply...