Display site notifications like violators and pop ups
Display site notifications like violators and pop ups
composer require dynamic/silverstripe-site-notifications
See License
Apply SiteTreeDataExtension
to SiteTree
:
SilverStripe\CMS\Model\SiteTree:
extensions:
- Dynamic\Notifications\Extension\SiteTreeDataExtension
In your top-level Page.ss
template:
<% if $Violators %>
<div class="violators">
<% loop $Violators %>
<div id="special-discount-line-{$ID}" class="violators__violator top4">
<div class="special-discount-content">
<div class="special-discount-text">
$Content
</div>
</div>
</div>
<% end_loop %>
</div>
<% end_if %>
<% if $PopUps %>
<% loop $PopUps.Limit(1) %>
<% if not $PopUpCookie %>
<div id="eighteen" class="popup special-discount" data-cookie="$CookieName">
$Content
</div>
<% end_if %>
<% end_loop %>
<% end_if %>
Bugs are tracked in the issues section of this repository. Before submitting an issue please read over
existing issues to ensure yours is unique.
If the issue does look like a new bug:
Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem