Hi, I’m using dynamic parameters in a form as per:
http://ellislab.com/expressionengine/user-guide/modules/channel/dynamic_parameters.html
I’m using it to filter products and when I am on /products the filter works fine. However I have a list of categories and if I try using the filter when on a category page, so the url is something like /products/category/category-name the filter doesn’t work at all. I end up with a list of products by entry_id.
Perhaps someone can tell me quickly if this is a known quirk or if it’s clearly something that I am doing wrong.
Here’s my code:
{exp:channel:entries channel="products" dynamic_parameters="orderby|sort|limit|category" status="open|Featured" limit="24" paginate="bottom" {sn_disable_member_comments}}
<form method="post" action="{path='products/index'}" id="products-list-filter">
<label for="orderby">Sort By:</label>
<select name="orderby" id="orderby">
<option value="date">Date Added</option>
<option value="product_price">Price</option>
<option value="title">Title</option>
</select>
<label for="sort">Order In:</label>
<select name="sort" id="sort">
<option value="asc">Ascending</option>
<option value="desc">Descending</option>
</select>
<label for="limit">Limit:</label>
<select name="limit" id="limit">
<option value="10">10</option>
<option value="20">10</option>
</select>
<input type="submit" value="Filter List" />
</form><!-- #products-list-filter -->
...
{/exp:channel:entries}Thanks for any help on this.