bolt / bolt/docs

Custom Field Types setZone for getAssets

Open
#448 0 comments 0 reactions 0 assignees View on GitHub
wrong-info
Dominant language
PHP
Stars
45
Forks
189
PR merge metrics
No merged PRs in 30d

Description

Following the documentation [here](https://docs.bolt.cm/3.0/extensions/advanced/customfields) instructions are given for registering custom assets.

However, this will not work unless the assets are assigned to a zone:

``` php
$asset = new JavaScript('web/jquery.uix.multiselect.min.js');
$asset->setZone(Zone::BACKEND);
return [
$asset
];
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.