What's new in EzyPlatform 1.1.2?
This release focuses on better control over permanent media deletion, expanded settings configuration,
improved template/theme extensibility, and enhancements in SDK/Core utilities.
- Flexible control for permanent media deletionIntroduced the
allowPermanentlyDeleteMediasetting for both Admin and Web to control permanent deletion of media. Media deletion APIs no longer remove physical files or records by default, but instead follow this configuration. A new methodMediaService.removeMediaPermanently(...)clearly separates soft delete and permanent delete behaviors. Admin UI only shows permanent delete actions when the setting is enabled. When a media is inDELETEDstatus and allowed, the system will remove both the record and the associated file. - Expanded media settings configurationAdded the “Allow permanently delete media” option to both Admin Settings and Website Settings. Settings APIs were updated to support
allowPermanentlyDeleteMedia. Web configuration variables are now clearly separated intowebAllowReplaceMedia,webAllowReduceMediaFileSize, andwebAllowPermanentlyDeleteMediato avoid confusion with Admin settings. Additionally, the number of settings loaded per request has been increased from12to30. - Improved template and theme extensibilityAdmin layout now supports extension points such as
additionalHeads,additionalStyles,additionalScripts, andadditionalFoots. Added astylesfragment infragments/additional.htmlto allow plugins and themes to inject CSS dynamically. New global JavaScript variables includeezyadmin.requestURIandezyadmin.requestUriTemplate, along with the hookezyadmin.photoSwipeLightboxDecorator(...)for customizing PhotoSwipe lightbox behavior. Theezytheme.htmltemplate was also updated with a more concise self-closing block syntax. - SDK/Core enhancements and DataRecordCountService expansionAdded the constant
CommonConstants.ONEand new setting constants related to permanent media deletion.DataRecordCountServicehas been extended with increment/decrement methods that return updated values, includingincrementRecordCountAndGet,decrementRecordCountAndGet,incrementRecordCountByDataNameAndRecordTypeAndGet, anddecrementRecordCountByDataNameAndRecordTypeAndGet.DefaultDataRecordCountServicenow auto-creates records if missing and returns the updated count after each operation, improving data tracking consistency.