Download the PHP package dft/silverstripe-call-to-actions without Composer
On this page you can find all versions of the php package dft/silverstripe-call-to-actions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dft/silverstripe-call-to-actions
More information about dft/silverstripe-call-to-actions
Files in dft/silverstripe-call-to-actions
Package silverstripe-call-to-actions
Short Description A Silverstripe module allowing you to create call to actions and render them using custom templates
License BSD-3-Clause
Homepage http://github.com/i-lateral/silverstripe-call-to-actions
Informations about the package silverstripe-call-to-actions
SilverStripe Call To Actions
A SilverStripe module that allows creation of custom call to actions
via SiteConfig
and allows them to be rendered in templates using
unique "slugs"
Installation Instructions
The prefered way to install this module is via composer:
composer require dft/silverstripe-calltoactions
Usage
Once the module is downloaded and installed, you can create call to actions via:
http://www.yourwebsite.com/admin/settings
And then clicking on the "CTA" tab.
You will then need to create a MenuHolder
(or use one of the installed defaults).
By default this module includes two CTA types:
Button
: A single linkable button that can be added to templatesRow
: A full width row with short html content and a linkable button
Templates
This module exposes $GetCTA("slug")
into all
controllers and can be called anywhere from within a
controller.
Each CallToAction
uses forTemplate
to handle rendering their data, so you
could also link CallToAction
s to your own pages or objects and load them
via a loop/call etc.
All versions of silverstripe-call-to-actions with dependencies
silverstripe/siteconfig Version ^4.0
gorriecoe/silverstripe-linkfield Version ^1.0
symbiote/silverstripe-gridfieldextensions Version ^3.1