PHPackages                             dynamic/silverstripe-elemental-templates - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. dynamic/silverstripe-elemental-templates

ActiveSilverstripe-vendormodule[Templating &amp; Views](/categories/templating)

dynamic/silverstripe-elemental-templates
========================================

Elemental Templates

3.0.5(1w ago)16.2k2[29 issues](https://github.com/dynamic/silverstripe-elemental-templates/issues)[1 PRs](https://github.com/dynamic/silverstripe-elemental-templates/pulls)1BSD-3-ClausePHPPHP ^8.3CI passing

Since Feb 19Pushed 3d ago3 watchersCompare

[ Source](https://github.com/dynamic/silverstripe-elemental-templates)[ Packagist](https://packagist.org/packages/dynamic/silverstripe-elemental-templates)[ GitHub Sponsors](https://github.com/dynamicagency)[ GitHub Sponsors](https://github.com/jsirish)[ RSS](/packages/dynamic-silverstripe-elemental-templates/feed)WikiDiscussions 3 Synced 2d ago

READMEChangelog (10)Dependencies (34)Versions (31)Used By (1)

Silverstripe Elemental Templates
================================

[](#silverstripe-elemental-templates)

A module for Silverstripe CMS that allows CMS users to define reusable page layouts, known as "templates" or "skeletons". These templates provide a predefined set of Elemental blocks that can be used to quickly create pages with consistent layouts and content.

[![CI](https://github.com/dynamic/silverstripe-elemental-templates/actions/workflows/ci.yml/badge.svg)](https://github.com/dynamic/silverstripe-elemental-templates/actions/workflows/ci.yml) [![Sponsors](https://camo.githubusercontent.com/475eb602a82fd79c0c52637caf359d39fd4a787ed0028b31af22a60fbe6dccb5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769744875622d53706f6e736f72732d6666363962343f6c6f676f3d676974687562)](https://github.com/sponsors/dynamic)

[![Latest Stable Version](https://camo.githubusercontent.com/ff02ceb8bdc1147338cc2f46fcaa1c5c4667a80776f7eb12d9e69293d28e45cb/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d74656d706c617465732f762f737461626c65)](https://packagist.org/packages/dynamic/silverstripe-elemental-templates)[![Total Downloads](https://camo.githubusercontent.com/8c4af27acfd4623751ba1ce74bd884a0a597a3cd8d9671aaf034aff0343ef145/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d74656d706c617465732f646f776e6c6f616473)](https://packagist.org/packages/dynamic/silverstripe-elemental-templates)[![Latest Unstable Version](https://camo.githubusercontent.com/8a7386a564a014205eed27b4dfd70afa7f9645be9940f7372e2a5f1221fdfda2/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d74656d706c617465732f762f756e737461626c65)](https://packagist.org/packages/dynamic/silverstripe-elemental-templates)[![License](https://camo.githubusercontent.com/84ad64624ff142cbd96fb8ee21af0aba22a0c2d3c19d97cd20955d1f32a277d0/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d74656d706c617465732f6c6963656e7365)](https://packagist.org/packages/dynamic/silverstripe-elemental-templates)

Requirements
------------

[](#requirements)

- PHP ^8.3
- dnadesign/silverstripe-elemental ^6.0
- lekoala/silverstripe-cms-actions ^2.0
- silverstripe/linkfield ^5.0
- silverstripe/vendor-plugin ^3

Installation
------------

[](#installation)

```
composer require dynamic/silverstripe-elemental-templates
```

Run `dev/build` to apply database changes.

Features
--------

[](#features)

- **Predefined Templates**: Create reusable templates with predefined Elemental blocks.
- **Page Creation from Templates**: Quickly create new pages based on existing templates.
- **Template Creation from Pages**: Generate templates from existing pages, including their Elemental blocks.
- **Configurable Defaults**: Populate Elemental blocks with default values defined in YAML configuration.

Usage
-----

[](#usage)

### Creating a Template

[](#creating-a-template)

1. Navigate to the "Elemental Templates" section in the CMS.
2. Click "Add Template".
3. Fill in the template details:
    - **Title**: Name of the template.
    - **Page Type**: Select the page type this template is compatible with.
    - **Elements**: Add Elemental blocks to the template.
4. Save the template.

### Creating a Page from a Template

[](#creating-a-page-from-a-template)

1. Go to the "Pages" section in the CMS.
2. Click "Add Page".
3. Select the desired page type.
4. In the "Template" dropdown, choose a template to apply to the new page.
5. Complete the remaining page details and save.

The selected template's Elemental blocks will be duplicated and added to the new page.

### Creating a Template from an Existing Page

[](#creating-a-template-from-an-existing-page)

1. Open the page you want to use as the basis for a template.
2. In the "More Options" menu, click "Create Blocks Template".
3. A new template will be created with the same Elemental blocks as the page.
4. Edit the template as needed in the "Elemental Templates" section.

Populating Template Elements
----------------------------

[](#populating-template-elements)

The module supports pre-populating Elemental blocks with default values. This is configurable via YAML and supports database fields and relationships.

### Example YAML Configuration

[](#example-yaml-configuration)

```
Dynamic\ElementalTemplates\Models\Template:
  populate:
    DNADesign\Elemental\Models\ElementContent:
      Title: "Default Title"
      Content: "Default content"
```

**Note:** The `$populate` static configuration is checked on the `Template` class to determine whether default values should be applied when duplicating elements from a template.

Roadmap
-------

[](#roadmap)

We recognize that the current implementation only supports configuring population definitions for database fields. Expanding this functionality to include other types of data is a priority, and we are actively working on adding this feature to enhance the module's flexibility and usability.

Logging and Debugging
---------------------

[](#logging-and-debugging)

The module logs key actions, such as template creation and Elemental block duplication, to the Silverstripe log file (`silverstripe.log`). This can help diagnose issues during development.

Getting more elements
---------------------

[](#getting-more-elements)

See [Elemental modules by Dynamic](https://github.com/orgs/dynamic/repositories?q=elemental&type=all&language=&sort=)

Maintainers
-----------

[](#maintainers)

- [Dynamic](https://www.dynamicagency.com) ()

Bugtracker
----------

[](#bugtracker)

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.

If the issue does look like a new bug:

- Create a new issue
- Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
- Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution
----------------------------

[](#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.

License
-------

[](#license)

See [License](LICENSE.md)

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance79

Regular maintenance activity

Popularity27

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 70.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~34 days

Recently: every ~5 days

Total

26

Last Release

5d ago

Major Versions

1.x-dev → 2.0.02025-05-28

2.x-dev → 3.0.02026-06-06

PHP version history (2 changes)1.0.0-beta1PHP ^8.1

3.0.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/867942?v=4)[Dynamic](/maintainers/dynamic)[@dynamic](https://github.com/dynamic)

---

Top Contributors

[![jsirish](https://avatars.githubusercontent.com/u/1163643?v=4)](https://github.com/jsirish "jsirish (45 commits)")[![muskie9](https://avatars.githubusercontent.com/u/870751?v=4)](https://github.com/muskie9 "muskie9 (12 commits)")[![wilr](https://avatars.githubusercontent.com/u/101629?v=4)](https://github.com/wilr "wilr (4 commits)")[![robbieaverill](https://avatars.githubusercontent.com/u/5170590?v=4)](https://github.com/robbieaverill "robbieaverill (3 commits)")

---

Tags

silverstripetemplateselementContent Blockselemental

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dynamic-silverstripe-elemental-templates/health.svg)

```
[![Health](https://phpackages.com/badges/dynamic-silverstripe-elemental-templates/health.svg)](https://phpackages.com/packages/dynamic-silverstripe-elemental-templates)
```

###  Alternatives

[dnadesign/silverstripe-elemental

Elemental pagetype and collection of Elements

1141.1M309](/packages/dnadesign-silverstripe-elemental)[wedevelopnl/silverstripe-elemental-grid

Elemental grid module

1015.0k2](/packages/wedevelopnl-silverstripe-elemental-grid)[fractas/elemental-stylings

Collection of useful and reusable SilverStripe Elemental stylings properties

1416.5k1](/packages/fractas-elemental-stylings)[dnadesign/silverstripe-elemental-decisiontree

Element displaying information in regards to answers given to questions

1117.7k1](/packages/dnadesign-silverstripe-elemental-decisiontree)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
