Download the PHP package dynamic/silverstripe-elemental-templates without Composer

On this page you can find all versions of the php package dynamic/silverstripe-elemental-templates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silverstripe-elemental-templates

Silverstripe Elemental Layouts

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
Latest Stable Version
Total Downloads
License

Features

Requirements

Installation

Install the module via Composer:

Run dev/build to apply database changes.

Usage

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

  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

  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

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

Example YAML Configuration

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

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

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.

Contributing

Contributions are welcome! Please submit a pull request or open an issue on GitHub.

License

This module is licensed under the BSD-3-Clause license. See the LICENSE file for details.

Maintainers

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:

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

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.


All versions of silverstripe-elemental-templates with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
dnadesign/silverstripe-elemental Version ^5.0
lekoala/silverstripe-cms-actions Version ^1.7
silverstripe/vendor-plugin Version ^2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dynamic/silverstripe-elemental-templates contains the following files

Loading the files please wait ....