You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using grid field after AND/OR conditional to check for true fails. #5480
Both of those are grid fields- I'm just trying to check for whether anything exists in either to display the content. But the second grid always returns false.
A bare Grid name in a conditional only works when ExpressionEngine rewrites it to a row count. That rewrite only happens for the field sitting directly against {if:
add_on_images is the field ExpressionEngine counts. It has no rows, so that side is false.
add_on_video is not rewritten. ExpressionEngine uses the channel data column instead of the Grid table. Grid only stores a search blob there, and this video row is not in it, so that side is false too.
Swapping in :total_rows on the same OR does not fix it. The modifier regex has the same limitation: only the field right after {if is calculated, so OR add_on_video:total_rows is still false.
Activity