nswdpc / silverstripe-elemental-decoratedcontent
Decorated content element for Silverstripe
Package info
github.com/nswdpc/silverstripe-elemental-decoratedcontent
Type:silverstripe-vendormodule
pkg:composer/nswdpc/silverstripe-elemental-decoratedcontent
Requires
Requires (Dev)
- cambis/silverstan: ^2
- cambis/silverstripe-rector: ^2
- friendsofphp/php-cs-fixer: ^3
- nswdpc/ci-files: dev-v-4
- phpstan/phpstan: ^2
- phpstan/phpstan-phpunit: ^2
- phpunit/phpunit: ^9.5
- rector/rector: ^2
This package is auto-updated.
Last update: 2026-03-30 06:51:18 UTC
README
This module extends the content element to provide some decorations for the default ElementContent content block.
It provides:
- an image + alignment option
- a video (YouTube / Vimeo) field
- a subtitle
- a link (via gorriecoe/linkfield)
- a call to action text field
- a date (different to created/last edited)
- a tag field (via silverstripe/taxonomy)
(all optional)
Implementation of these features in a template can and should be done at the project level.
Requirements
See composer.json for details.
Installation
composer require nswdpc/silverstripe-element-decoratedcontent
Add the element to the list of allowed_elements.
Usage
In a page, select the 'Decorated content' block and complete the fields, then publish.
License
BSD-3-Clause
See License
Configuration
None!
Maintainers
- PD Web Team
Bugtracker
Please add issues to the Github issue tracker
Security
If you have found a security issue with this module, please email digital[@]dpc.nsw.gov.au in the first instance, detailing your findings.
Development and contribution
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.