nyeholt / silverstripe-ozzymental
Useful additions to the Elemental module.
Installs: 5 674
Dependents: 0
Suggesters: 2
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 1
Type:silverstripe-vendormodule
Requires
This package is auto-updated.
Last update: 2024-12-07 12:44:01 UTC
README
Adds in
- ElementaryPage - a page type that uses elements
- EmbeddedItemElement - An element type that uses OEmbed for embedding arbitrary URL content
- TemplatedElementExtension - with the User Templates module, allows for elements to be individually templated.
Composer Install
composer require nyeholt/silverstripe-ozzymental:~2.0
Requirements
- SilverStripe 4.1+
Configuration
ElementaryPage can be used out of the box as a new page type when creating a page
EmbeddedItemElement will be available as an element to add
TemplatedElementExtension - NOT AVAILABLE IN SS4 as yet
Templated elements
Add in User Templates module, and you can choose a CMS managed template to be bound to the template
You'll need to add an ElementHolder.ss template to your theme that contains something like
$TemplatedContent
to make use of it.
Then, bind the extensions
---
Name: element_config
---
DNADesign\Elemental\Models\BaseElement:
extensions:
- Symbiote\Elemental\Extension\TemplatedElementExtension
DNADesign\Elemental\Controllers\ElementController:
extensions:
- Symbiote\Elemental\Extension\TemplatedElementControllerExtension
---
Name: elemental_overrides
Only:
moduleexists: usertemplates
---
DNADesign\Elemental\Models\BaseElement:
has_one:
LayoutTemplate: Symbiote\UserTemplates\UserTemplate