ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6
Back to this add-on's main page
View Other Add-ons From Mark Croxton
stash variables in channel parameter
|Posted: 25 September 2019 04:44 AM
Goal: DRY. Therefore I use some stash variables and want to use them as channel entries parameters like this:
The actual query as shown in debugging mode is always using
t.status = 'open'
As a matter of fact, even when I use
it still shows only open entries. Wrapping the whole channel entries tag inside
also doesn’t give the desired result. The only workaround I can think of is checking if you’re logged in and use 2 times the channel tag but that’s exactly what I try to avoid here.