I’ve been considering this idea to better target an audience using the Trust Levels:
I think I have something for you all to check out.
Though, I recommend testing this on a non-production environment first as it introduces a breaking change.
To install this version, use the staging
branch of Notification Banners:
Breaking change
When the banner visibility is evaluated using the Audience field values, all the trust_level_*
roles of the visitor are ignored, except the highest level.
For example, consider a user has these roles: support_team
, blog
, trust_level_0
, trust_level_1
, and trust_level_2
.
The Audience field will consider the user only has support_team
, blog
, and trust_level_2
.
So, if a banner needs to target only the TL2 users, the Audience field should need to be set to trust_level_2
. The other trust levels will not see the banner.
I updated the description for the Audience field to clarify this change as well.
I plan to test these changes further, and probably create a new release by end of September. I appreciate any feedback you may provide.
Thanks!