Version History


* Retrieving pages now will actually use the ACTIVE version of the page, and not the most "RECENT", since that one could not be published yet;


* Global `cache` configuration were trying to access incorrect values (`block_output_on_post`, `block_output_for_registered_users`), which is now fixed;


* `URL` field type now supports type `X` database field type, meaning > 255 characters are allowed (previous type `C` wouldn't allow this);
* `MultipleSelect` field type now makes sure `options` and `defaults` are not being passed as attributes on the to be shown dropdown;
* Global `cache` configuration were trying to access incorrect values (`block_record`, `block_output`, `block_output_lifetime`), which is now fixed;
* Special thanks goes to **concrete5cojp** for reporting bugs and proposing bug fixes;


* Remove moment.js from this package, since it is available in the core (and used/updated from there) now;


* Change check for "numeric" value for "Page" field type instead of "string", which would cause not to show in PHP 8.1.x and up (special thanks to Lemonbrain for quick debugging);


* Add check if file exists before showing form in "Edit mode" (to prevent popup saying "File not found");


* Add option to exclude/include plugins for "WYSIWYG" field type, by passing an array of plugin keys into the config (only for non-repeatable);


* Add PHP8 support (previous versions wouldn't work at all);


* Fixed non-working "File" field type used in "Repeatable" field type in combination with ConcreteCMS 9.x;

* Fixed non-working "Image" field type used in "Repeatable" field type in combination with ConcreteCMS 9.x;

* Update "Link" field type used in "Repeatable" field type in combination with ConcreteCMS 9.x (new page selector);


* Fix non-working tabbed content in version 9 and higher of ConcreteCMS;


* Additional checks for building database file, view template and additional templates - makes it possible to (temporarily) extend Block Types from core BlockController


* Fixed non-working tooltip in version 9 when hovering over question mark icon (?) in forms;


* Code readability/guidelines: Applied PHP CS Fixer on all PHP files;
* Made it possible to have up to 2000 characters (previously 255) for the "Url" field type;


* Fixed bug where WYSIWYG content would be translated from EditMode in normal page viewing mode, resulting in i.e. links not te be prettified (index.php?cID=123);
* Minor code improvement/removal;


* Fixed bug where upon duplicating a Block Type, Repeatable items wouldn't get duplicated along with them (which also happens when changing Custom Template);


* Fixed "Command" class compatibility issues because of core SymfonyCommand update;


* Added $btExportPageColumns and $btExportFileColumns support for multilingual sites - used in "File", "Image" and "Page" field types (`getExportFileColumns` and `getExportPageColumns` function calls);
* Fixed non-rendering link from "Page" field type when (copy) pasted from "Clipboard";


* Breaking change for "Code" field type, now does htmlspecialchars (concrete5 h() function) on the value by default for security reasons;
* Added option to skip htmlspecialchars for "Code" field type by setting "skip_h" value to `true` in the config (see documentation);
* Added option to skip `<pre><code>` open/close tags for the "Code" field type by setting "skip_pre_code" value to `true` in the config (see documentation);
* Minor code change in "Repeatable" field type for "getSearchableContent", a function that handles the search indexing;
* Fixed issue with "Page" field type, when pasted from the clipboard with a selected page, it would throw an error and not add/paste the block on the page;


* Fixed issue with "Repeatable" field type, where some assets weren't loaded for some field types used within a "Repeatable" field;
* Minimal CSS additions for "datetimepicker" widget, due to within the concrete5 "composer" form not loading frontend/Bootstrap CSS;


* Fixed non-working "Page" field type in some situations (by adding "core/sitemap" asset upon add/edit);


* Fixed issue with "options" within the "Select" field type, when array keys were numeric (changed from array_merge() to a union of the arrays);


* Added configurability for default "prefix" and "suffix" values for field, to increase view/template readability;
* Field types "Image" and "Page" now always save an integer (0) when no image/page was selected;


* Fixed compatibility issues with concrete5 versions below 8.2;


* Fixed issue with "File" validation (used in "Image" and "File" field types), where after hitting "Clear" to remove the file, it would not validate correctly (because of default "0" string in a hidden input field, entered by concrete5 core);


* Fixed an issue for validation of the "Image" field type, giving an error: "Cannot use Concrete\Core\File\File as File because the name is already in use";


* Implemented a check before uninstalling, if there are still Block Types installed created with this Add-On, which have to be uninstalled for before actually uninstalling this Add-On;


* Fixed issue when name/description or interface height/width was changed in the config file, it wouldn't actually update the values;
* Developers: Core::make for legacy versions rewritten to non-deprecated code;
* Developers: "execute" function calling on the Connection class rewritten to non-deprecated code (executeQuery);
* Developers: Rewritten "scandir" function to use the core/concrete5 file service instead;


* Fixed an issue with environment/overrides cache (needed to be flushed), which caused errors upon generating a Block Type in some situations - not all situations;
* Developers: Removed unused use statements in classes located in the "/block_developer/src/BlockDeveloper/Block/Builder/" directory;


* Reduced minimum concrete5 version from 8.2 to - for those still using old(er) concrete5 versions;
* Developers: Changed "use BlockType" into the full class name;


* Better error message upon entering an invalid "Block Handle" for the CLI command;
* Handles of the default Block Types that ship with your concrete5 install (like "autonav" or "faq" for example), can't be used for generating Block Types in Block Developer;
* Developers: Changed "use Package" and "use Config" into their full class names;
* Developers: Removed unneeded defined('C5_EXECUTE') or die("Access Denied.") in a whole lot of files;


* Initial Release