1

Is there a way to filter {exp:channel:entries} based on the number of rows in a Grid field?

1

Not natively, no. But you could use the Query module to populate the entry_id parameter:

{exp:channel:entries channel="foo" entry_id="
    {exp:query sql="
        SELECT entry_id, count(*) AS count 
        FROM exp_channel_grid_field_XXX 
        GROUP BY entry_id 
        HAVING count > X" 
        backspace="1"}{entry_id}|"{/exp:query}
"}

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.