toastnz/toast-cms-helpers

Silverstripe CMS helpers

Installs: 880

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 5

Forks: 1

Open Issues: 0

Type:silverstripe-module

0.1.2 2017-01-16 01:42 UTC

This package is not auto-updated.

Last update: 2024-04-13 17:19:16 UTC


README

Total Downloads License Build Status 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6164655f776974682d2532302532302532302545322539382539352d677265656e2e737667 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6164655f62792d2546302539462539322541392546302539462539322541392d6464646464642e737667 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6164655f666f722d2546302539462539322542352d6536616363612e737667

Silverstripe CMS Helpers

Small helpers, fields, and requirements to assist users with navigating and using the CMS.

Installation

 composer require toastnz/toast-cms-helpers

Features

Reference Field

The Reference Field displays an image inside a styled block, with the purpose of showing the user where content will be displayed on the frontend.

Usage

$referenceField = ReferenceField::create(
    'FieldName', // Can be blank
    'Heading / Label',
    'Hint / ToolTip',
    'example.png' // Image / screenshot filename
);

Configuration

ReferenceField:
  base_image_path: 'mysite/images/reference'
  border_color: '#0073aa'