modxcms / fred

The friendly front-end editor for visual, drag-and-drop content building in MODX CMS
https://fred.modx.com
MIT License
58 stars 25 forks source link

Fred Dropzone missing from TV input options, input type list #447

Closed whatifwedidthis closed 1 year ago

whatifwedidthis commented 1 year ago

Using Modx 3.0.1-pl with Fred 2.0.1. When attempting to create a new TV for an additional dropzone, the Fred Dropzone input type is missing.

In the plugin code, the variable $corePath is used but never set.

Adding the following to the plugin code solved the issue:

$corePath = $modx->getOption('fred.core_path', null, $modx->getOption('core_path', null, MODX_CORE_PATH) . 'components/fred/');