Download the PHP package sunnysideup/silverstripe-elemental-style without Composer

On this page you can find all versions of the php package sunnysideup/silverstripe-elemental-style. 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-style

Jellygnite Elemental Dynamic Styles

Introduction

Add as many style dropdown fields as you like to any element via a YML file.

Styles are grouped by location. This allows you to insert CSS classes into various positions in your template other than just the holding container.

A good example of where you might want extra styles within your template is when you need to offer the ability to change the number of columns within a grid.

UPDATES

TO DO

Requirements

Installation

Example configurations

Include the following information in your config:

Method 1

You can add extra styles to your individual Elements, e.g.

Options e.g.

Method 2

Or add using yml file, e.g. to make the styles available to Elements that extend the BaseElement:

Method 3

Alternative method using an Extension on your Elements, create a file called CustomBaseElementExtension.php.

And then in your .yml file:

Using Styles in your templates

There are a few ways to use the styles in your templates.

The original $StyleVariant variable will output all styles that don't use the location option. e.g.

The $StyleByLocation method is more powerful and allows you to create multiple styles that can be used throughout your templates.

You don't have to limit yourself to using it for class names.

And in the template:

Front end editing

In order to view the front end editing features you need to ensure the following things:

Notes

The minimum requirements for a style is as follows. Title will use the style's index, (in this case 'MarginTop').

You can disable an inherited style on a per element basis by setting the index to null, e.g.


All versions of silverstripe-elemental-style with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version ^4.0 || ^5.0
dnadesign/silverstripe-elemental Version *
jellygnite/silverstripe-sliderfield Version dev-feature/CMS-5
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 sunnysideup/silverstripe-elemental-style contains the following files

Loading the files please wait ....