0

I have a Low Variables Grid setup and I'm trying to just return the rows that match a value in a column, if it exists.

In the Low Variable setup, I have the column checked to be "Grid Column Searchable". And the grid column is a plain text field.

Is there any reason why my setup is returning all the rows, instead of just the one with "wa"?

{!-- Low Variables "Grid" Field. --}
{exp:low_variables:pair var="lv_states" search:gd_state="wa"}
  {lv_states:gd_state}
{/exp:low_variables:pair}

Alternatively, I tried to see if the low variables "Table" fieldtype or P&T Field Pack "List" would cover it but that isn't giving a result either.

Is searching those two field types possible?

{!-- Low Variables "List" Field. --}
{exp:low_variables:pair var="lv_states" search:item="wa"}
{item}
{/exp:low_variables:pair}

Thank you for any assistance,

  • Both the Table and the List types don't support search:column parameters, so that's as expected. Which version of both EE and LV are you using? – Low May 3 '16 at 6:14
  • I was just looking into the bug history and it does look like the issue is related to the EE 2.73 / LV 2.61 setup I'm running. link – oliverb May 3 '16 at 18:29
  • I won't be available right away to run the ugrades on this older install... any suggestions for an alternative approach? The suggestion in the bug report doesn't seem to apply, as the /system/expressionengine/models/grid_model.php file has the recommended code in it. – oliverb May 3 '16 at 18:31
  • Not sure. I'd try and upgrade the software to the latest version. – Low May 4 '16 at 13:18
0

Issue is related to a bug that existed with an older version of EE.

Details:

Grid Search Parameter Does Not Work With Low Variables

Thank you Low for your assistance.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.