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-07-20 18:36:47 UTC


README

Total Downloads License Build Status

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'