Page 1 of 1
Hiding Warnings Block
Posted: Mon Sep 04, 2017 8:29 am
by stewart45
Not sure if I dreamt this (or maybe it was on another template possibly Leuven)but here goes, I have the warning UK block on my main page which for 99% of the time has nothing to report is it possible to hide the block so that it is only visible when there is a warning in force
Re: Hiding Warnings Block
Posted: Mon Sep 04, 2017 10:01 am
by Jachym
Hi,
must have been a dream
Now, seriously, no, the block will show "No warnings", when no warnings are detected.
Re: Hiding Warnings Block
Posted: Fri Oct 13, 2017 4:18 am
by BobW55
Stewart.
I wanted to do the same thing. What I ended up doing is the following:
On the set up for the warnings block, it allows for text when there is NO warning. I left this blank.
When the block is displayed, it is slightly less tall, and just looks like a blank rectangle. When there is a warning in gets slightly taller in height and displays what ever text you placed in RED.
Re: Hiding Warnings Block
Posted: Fri Oct 13, 2017 9:04 am
by Jachym
Hi guys,
here is my opinion - it is IMHO not a good idea to do this and I will therefore not implement this myself (feel free to do it yourself).
Here is why:
You know the website, you know that there is a warnings block and that if it was missing, there is no warning.
However consider this difference:
1. warnings block shows "No warnings" and is still visible (current state) - visitor knows there is no warning issued
2. warnings block hides when there is no warning (proposed state) - visitor has no idea if there is a warning or not because they have no idea such block would show if there was. They would simply think warnings is something you did not implement to your website.
Re: Hiding Warnings Block
Posted: Sun Oct 15, 2017 3:28 am
by Fraggboy
I wish my warning block was green...

Don't select "More" on mine. Way too many warnings.
Re: Hiding Warnings Block
Posted: Sun Oct 15, 2017 3:23 pm
by dmgould
I think my users definitely want to know 'No Warnings', especially during thunderstorm and tornado seasons. If there is a change made to this block I propose that the setup gives a choice to set either 'No Warnings' or disappear. I agree with Jachym that knowing there is not a warning active is important.