Download the PHP package pixelpoems/silverstripe-layout-options without Composer

On this page you can find all versions of the php package pixelpoems/silverstripe-layout-options. 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-layout-options

Silverstripe Layout Options Module

stability-beta

This module provides extensions for layout options. The options can be attached to pages, elements or each data object. By default this module comes with options for text, background and width. Furthermore, this package contains a selection field wich is based on color palate field by heyday.

Requirements

Installation

Configuration

Add the desired extension on Page:

or Element (if you use Elemental form DNADesign e.g.):

The fields will appear in the order the extensions are added within the yml config.

Each entity can be hidden if they should not appear e.g.:

Default Layout Options

Text

Background

Width

Image

Update Options

For each option set, you can use a hook to update/expand the options from which the user can choose.

To configure the options for the heading tag, text color, text align, background color and width, you can add config variables like this:

The options, which are configured in the yml file, will overwrite the default options!

Otherwise, you can use the following hooks to update the options or add new ones:

Holder Classes

This module comes also with an extension of the DNADesign Elemental Base Element. This extension adds holder classes to the element. The holder classes are a combination of the layout options and a el-classname class. This holder class can be used to style the element in the frontend. The holder class is added to the holder div of the element.

If you want to manipulate or add your custom layout classes to this holder class, you can use the following hook:

Reporting Issues

Please create an issue for any bugs you've found, or features you're missing.


All versions of silverstripe-layout-options with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
silverstripe/cms Version >=4
silverstripe/framework Version >=4
silverstripe/vendor-plugin Version >=1
pixelpoems/silverstripe-selection-field Version ^1.1.0
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 pixelpoems/silverstripe-layout-options contains the following files

Loading the files please wait ....