CoolCMS API

ImageUploadComponentTrait

Exposes the reusable component for uploading the main image.

The field is added to the form with Form::addImageUpload().

Usage (inside {form ...} of the template):

{control imageUpload $form, 'image', $imageUrl}

Table of Contents

Properties

$imageUploadFactory  : ImageUploadFactory

Methods

createComponentImageUpload()  : ImageUpload

Properties

Methods

On this page

Search results