Page 1 of 1

Products custom navigation using action="fieldlist"

Posted: Fri Aug 12, 2011 7:48 am
by vigor
I'm building a directory with the products module and I'm trying to build a navigation menu based on a custom field which I can do using the code below. County is the location of each business.

Code: Select all

{Products action="fieldlist" field="County" showall="1"}
I now need to use this within a hierarchy or category so it only displays results based on the current category or hierarchy.

Does anyone know how I can do this? I'm hoping thats its just a simple piece of code to call the right variables but I've been trying to figure it out for 2 days now with no success.

Any help would be very much appreciated.
Thanks,
Paul

Re: Products custom navigation using action="fieldlist"

Posted: Mon Sep 26, 2011 1:18 pm
by plojewski
Same question. Please help!

Re: Products custom navigation using action="fieldlist"

Posted: Mon Sep 26, 2011 4:24 pm
by applejack
In the summary action you can only return results based upon ONE custom field. So if e.g. you are using these to populate drop down boxes for a search based upon the selection of more than one custom field you cannot do it via the summary action Smarty tag.

The only way you can do it is to filter the options in the foreach loop of a summary template and build your own pagination.