iliain/silverstripe-visualfields

Provides a number of CMS fields that display images

Installs: 172

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:CSS

Type:silverstripe-vendormodule

1.0.2 2022-12-07 04:38 UTC

This package is auto-updated.

Last update: 2024-05-19 05:44:56 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Provides similar functionality to heyday/silverstripe-colorpalette, but uses images rather than colours.

Installation (with composer)

$ composer require iliain/silverstripe-visualfields

Usage

$fields->addFieldToTab('Root.Main', VisualOptionField::create('BlockLayout', 'Layout', [
    'layout-1' => '/_resources/app/client/images/layout/layout-1.png',
    'layout-2' => '/_resources/app/client/images/layout/layout-2.png'
]));