Download the PHP package pikselin/silverstripe-pagebanners without Composer
On this page you can find all versions of the php package pikselin/silverstripe-pagebanners. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pikselin/silverstripe-pagebanners
More information about pikselin/silverstripe-pagebanners
Files in pikselin/silverstripe-pagebanners
Download pikselin/silverstripe-pagebanners
More information about pikselin/silverstripe-pagebanners
Files in pikselin/silverstripe-pagebanners
Vendor pikselin
Package silverstripe-pagebanners
Short Description Add page or site level alert banners to a Silverstripe site.
License BSD-3-Clause
Package silverstripe-pagebanners
Short Description Add page or site level alert banners to a Silverstripe site.
License BSD-3-Clause
Keywords alertssilverstripe
Please rate this library. Is it a good library?
Informations about the package silverstripe-pagebanners
silverstripe-pagebanners
Add page or site level alert banners to a Silverstripe site.
Features
- Allow multiple banners to be displayed in sequence (ordered by LastEdited)
- Site wide or page specific banners (both allowed on one page)
- Optional date embargo on banners - set a start and end date or leave open ended
- Add a link to each banner (using gorriecoe Link module)
- Optional dismiss button on banner (uses local storage)
Notes
Banners are managed from the main admin section.
Template can be overridden, just copy PageBanners.ss to {theme}/templates and edit the mark-up.
Simple CSS for laying out the banners is included.
Adding to your templates
This module uses an extension on SiteTree and an internal template render call. Just use
$PageBanners
In your template to add them in.
CSS structure for banners block and each banner
.page-banners {
.page-banner {
&.page-banner-{type} {
}
.page-banner-type {
}
.page-banner-content {
}
.page-banner-control {
.page-banner-close {
}
}
}
}
Credits
Javascript to control banner visibility taken from silverstripe/silverstripe-banner
All versions of silverstripe-pagebanners with dependencies
PHP Build Version
Package Version
Requires
silverstripe/cms Version
^4
silverstripe/framework Version ^4
gorriecoe/silverstripe-linkfield Version ^1.0
silverstripe/framework Version ^4
gorriecoe/silverstripe-linkfield Version ^1.0
The package pikselin/silverstripe-pagebanners contains the following files
Loading the files please wait ....