40fingers / StyleHelper-Sko

Manipulate DNNCMS HTML, JS and CSS in #dnncms
https://www.40fingers.net/Products/DNN-Stylehelper
7 stars 2 forks source link

Add NOT option for comma separated values #24

Closed Timo-Breumelhof closed 2 years ago

Timo-Breumelhof commented 2 years ago

You can pass multiple values to a condition like so:

<fortyfingers:STYLEHELPER ID="SH1" IfRole="Superusers|Administrators" Content="You are important!" runat="server" />

But if you want an option for anybody but Administrators and SuperUsers, you cannot use:

<fortyfingers:STYLEHELPER ID="SH2" IfRole="!Superusers|!Administrators" Content="You are not important!" runat="server" />

As this will check for not SuperUser OR not Administrator, which will return True for Administrators (as they are not a Superuser)