FusionCMS is currently in an open beta state and under heavy active development.

Assets

The Asset Field is a relational field that ties the File Manager to other Content Types (i.e. Collection, Page), allowing for one or multiple files (images, videos, or other file types) to be grouped under a single Field.


File Selection

Click the Manage Assets button to launch the File Manager Model.

Next, you are select one or multiple files with a Shift+Click or Drag 'n Select. After you've made your selection, click the green Push button to move the files to the Selection Area. (You can also double-click to add a single file to the Selection Area).

Once you are satisfied, hit the Accept buttons to confirm your selection. Reject will cancel the Selection, leaving you with your previous selection.

Template Usage

Display all images in the gallery:

<ul>
    @foreach($entry->image_gallery as $image)
        <img src="{{ $image->url }}" width="50" />
    @endforeach
</ul>

Settings

There are several configurations provided to manipulate the Field to your needs.

This field provides the following settings:

Setting Description
Name User-friendly identifier.
Handle Developer-friendly identifier.
Help Instructions Additional instructions written in small print next to the field.
Validation Rules Laravel-specific validation rules view docs
Limit Limit the number of assets selected; leave blank if no limit is desired.
Root Directory Select root folder for this field; default root will be used if None selected.
File Type Restrictions Restrict which file types are selectable for this field; leave blank if no retriction is desired.
Have questions?

We're always happy to help with code or other questions you might have. Contact support or chat live with us on Discord.

Last edited on Friday, June 26, 2020 (1 year ago)