Reefine
ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6
Back to this add-on's main page
View Other Add-ons From Patrick Woodcock
filter:field_name:orderby=“value1|value2|value3” not working
Bug (Resolved)
jmg
|
Posted: 10 October 2019 06:25 PM |
|
|
|
filter:field_name:orderby functionality doesn’t seem to be working with any fields/values that I’m passing in.
Reference code:
{exp:reefine channel="product_details" parse="inward" theme="gear-selector" method="ajax" category="74|240|241|242|243|244|245|246" {!-- only show all accessories --} filter:color:fields="housing_color" filter:gender:fields="fits_make" filter:fields="fits_model" filter:size:fields="fits_model" filter:size:orderby="s|m|l|xl" } {entries} {embed="_partials/gear-product-cards" entryids="{entry_ids}"} {/entries} {/exp:reefine}
|
|
|
Patrick Woodcock
|
Posted: 10 October 2019 07:15 PM |
# 1
|
|
Developer
|
Hi. You have two filter groups “size” and “fits_model”, only the size group has the orderby applied . I suggest this change:
{exp:reefine channel="product_details" parse="inward" theme="gear-selector" method="ajax" category="74|240|241|242|243|244|245|246" {!-- only show all accessories --} filter:color:fields="housing_color" filter:gender:fields="fits_make" filter:fits_model:fields="fits_model" filter:fits_model:orderby="s|m|l|xl" } {entries} {embed="_partials/gear-product-cards" entryids="{entry_ids}"} {/entries} {/exp:reefine}
|
|
|
jmg
|
Posted: 14 October 2019 09:27 PM |
# 2
|
|
|
Hi Patrick, I still have the same results when I remove the duplicate and changing to the exact code block you provided.
|
|
|
Patrick Woodcock
|
Posted: 15 October 2019 09:22 AM |
# 3
|
|
Developer
|
Hi
That’s odd. Is it online anywhere I can see it? If you need to send me login details you can email me patrick (at) patrickw.tech
|
|
|
jmg
|
Posted: 15 October 2019 08:47 PM |
# 4
|
|
|
Here’s the link: http://trijdev.jmgstaging.com/products/gear
The additional size variations have been added to the code as well. Let me know if you need login details
|
|
|
Patrick Woodcock
|
Posted: 19 October 2019 08:41 AM |
# 5
|
|
Developer
|
Hi
Can you tell me what the fieldtype of fits_model is? Also could you try using capitals instead eg “S|M|L|XL”
If that doesn’t work email me an admin login and I can take a look.
Patrick.
|
|
|
jmg
|
Posted: 20 October 2019 05:40 PM |
# 6
|
|
|
They are standard text input fields. changing case from ‘s’ to ‘S’ makes no change either. I’ll email you login credentials.
|
|
|