Download the PHP package arillo/silverstripe-utils without Composer
On this page you can find all versions of the php package arillo/silverstripe-utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arillo/silverstripe-utils
More information about arillo/silverstripe-utils
Files in arillo/silverstripe-utils
Package silverstripe-utils
Short Description Utils and helpers for SilverStripe CMS.
License MIT
Homepage https://github.com/arillo/silverstripe-utils
Informations about the package silverstripe-utils
Arillo\Utils
Utils and helpers for SilverStripe CMS.
Requirements
SilverStripe CMS ^4.0
Installation
Usage
This module is a bundle of classes to alter functionality in the CMS.
Arillo\Utils\HiddenLeftAndMain
Attach Arillo\Utils\HiddenLeftAndMain
to any LeftAndMain subclass you want to hide, e.g. in config.yml
:
Arillo\Utils\FluentFilteredHelper
If you use silverstripe-fluent
with TractorCow\Fluent\Extension\FluentFilteredExtension
you can add Arillo\Utils\FluentFilteredHelper
to your translated DataObject and it will attach all Locales on record creation and deletes locale entries on record deletion. In config, e.g. add:
Arillo\Utils\FluentHelper
With Arillo\Utils\FluentHelper::force_delete
you can improve UX in CMS while record deletion. At the moment Fluent forces you to delete a page in each Locale, to remove it from SiteTree. Example usage:
Arillo\Utils\CMS
Some unsorted functions.
Remove campaign-related actions from Menu:
Thumbnail helper function for gridfield usage:
Arillo\Utils\AlertField
Display a message in CMS (bootstrap alert style). E.g.:
Arillo\Utils\SortableDataObject
Add this extension to a DataObject to make it sortable:
You can apply GridFieldOrderableRows
to the managing GridField
with the following helper function:
Arillo\Utils\Env
There are 3 global helper functions for template usage:
in php:
Arillo\Utils\PageHelper
Helper for pages & templates functions.
Adds PageInstance
and PageControllerInstance
template methods. Most helpfull in case there should be only one instance of a SiteTree subclass: