Adds additional functionality to assist in developing SilverStripe websites.
IconSelectField
to use icon libraries within the CMSLogJam
logging to append system error logcomposer require jaedb/dev-tools
templates/Page.ss
template and add $DebugTools
immediately before the </body>
tagconfig.yml
. See config/dev-tools.yml for an example.When you set your SS_PRIMARY_DOMAIN
property on a live
website, we automatically redirect to this primary domain. This avoids the need for bloated .htaccess redirections and allows control at the environment level.
_ss_environment.php
define('SS_PRIMARY_DOMAIN', 'https://plasticstudio.co.nz');
will redirect http://www.plasticstudio.co.nz/some-section/subpage to https://plasticstudio.co.nz/some-section/subpage.disable_primary_domain_redirection: true
in your project's config.yml
$db
field to type Icon
(eg 'PageIcon' => 'Icon'
)IconSelectField::create($name, $title, $iconFolder)
$name
is the database field as defined in your class$title
is the label for this field$iconFolder
(optional) defines the directory where your icons can be found. Defaults to /site/icons
.$PageIcon
). If your icon is an SVG, the SVG image data will be injected into the template. To prevent this, you can call $PageIcon.IMG
instead to enforce use of <img>
tags.LogJam::Log($message, $environment)
$message
a string that you'd like to log$environment
(optional) the type of environment that should log this message (ie test, dev, live). Defaults to dev
._config.php
by adding LogJam::EnableLog();
_ss_environment.php
with the following:ini_set('log_errors','on');
ini_set('error_log','/home/mywebsite/logs/php.log');
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