Conditional display page area from URL parameter

Hi
another silly question from me. So I have a URL parameter setup, active / not active. I have this working lovely with my DB query, so if my URL is active=1 I only get active jobs, if it is active=0 I only get inactive jobs, that all works great and I only get the correct DB rows. But I would like a conditional container on the page, so if the url parameter was active=1 the container would say “you have 2 active jobs” and if the url was active=0 then the container would say you have 1 inactive job".

So I know my url parameter and query all work, as its working on the DB, I added 2 containers to the page, and made them both conditional, using the query variable i have working with the db, but i get both containers show on the page, so clearly I am doing something wrong

thanks
Darren

Just removing the ‘= 1’ should fix this. If you need to compare the parameter to a value then you need to use ‘==’.

thank you for that, I was sure I had tried == and it didnt work, but stripping it out and doing it fresh with == and it has worked :slight_smile:

1 Like