category_url_title's vs. category_id's in low:search:results
Hi low,
I am reopening an issue.
A little bit of history:
I am using low search to filter products from a shop. This time I didn't want to use encoded queries but work with the query strings. The reason I chose this was to have more readable urls. so instead of https://erdbeerpunkt.exempel.ch/shop/... I would like to have something like https://erdbeerpunkt.exempel.ch/shop?...
It all works out quite well, but I would love to work with category_url_titles instead of category id's.
Is there a way that exp:low_search:results would react to a category_url_title vs. a category_id
I think you'll agree that this
https://erdbeerpunkt.exempel.ch/shop?...
is nicer than this
https://erdbeerpunkt.exempel.ch/shop?...
here's the code I use and that works with category_id's:
1. the links:
{exp:channel:categories channel="ch_shop" show_empty="no" style="linear" category_group="10"}
<a href="{low_search:url reset='yes' category:Artikel='{category_id}'}"{exp:low_list:has value="{category_id}" items="{low_search_category:Artikel}"} class="here"{/exp:low_list:has}>{category_name}</a> <br />
{/exp:channel:categories}
2. the search results:
{exp:low_search:results limit="24" channel="ch_shop" orderby="low_reorder:lr_shop" disable="member_data" paginate="both"}
{sp_shop_item}{!-- snippet --}
{/exp:low_search:results}
But it does not work when I replace category_id with category_url_title :(
Would it be somehow possible to make the search results react to a category_url_title's in the url?
If not, do you think it would be feasible to add this either as a feature request or on a paid basis?
Cheers
Stefan
Replies
Low 18 Apr 2016 17:08
The only way right now would be with a custom extension. Contact me if you need me to build it. http://gotolow.com/contact