Grav v1.7.0-rc.4 Release Notes
Release Date: 2020-02-03 // about 4 years ago-
02/03/2020
-
- POTENTIAL BREAKING CHANGE: Upgraded Parsedown to 1.7 for Parsedown-Extra 0.8. Plugins that extend Parsedown may need a fix to render as HTML
- Added
$grav['flex']
to access all registered Flex Directories - Added
$grav->dispatchEvent()
method for PSR-14 events - Added
FlexRegisterEvent
which triggers when$grav['flex']
is being accessed the first time - Added Flex cache configuration options
- Added
PluginsLoadedEvent
which triggers after plugins have been loaded but not yet initialized - Added
SessionStartEvent
which triggers when session is started - Added
PermissionsRegisterEvent
which triggers when$grav['permissions']
is being accessed the first time - Added support for Flex Directory specific configuration
- Added support for more advanced ACL
- Added
flatten_array
filter to form field validation - Added support for
security@: or: [admin.super, admin.pages]
in blueprints (nested AND/OR mode support)
-
- Blueprint validation: Added
validate: value_type: bool|int|float|string|trim
toarray
to filter all the values inside the array - Twig
url()
takes now third parameter (true
) to return URL on non-existing file instead of returning false 🛠 1. - Grav 1.7: Fixed blueprint loading issues #2782
- Fixed PHP 7.4 compatibility issue with
Stream
- Fixed new
Flex Users
being stored with wrong filename, login issues #2785 - Fixed
ignore_empty: true
not removing empty values in blueprint filtering - Fixed
{{ false|string }}
twig to return '0' instead of '' - Fixed twig
url()
failing if stream has extra slash in it (e.g.user:///data
) - Fixed
Blueprint::filter()
returning null instead of array if there is nothing to return - Fixed
Cannot use a scalar value as an array
error inUtils::arrayUnflattenDotNotation()
, ignore nested structure instead - Fixed
Route
instance in multi-site setups - Fixed
system.translations: false
breakingInflector
methods - Fixed filtering ignored (eg.
security@: admin.super
) fields causingFlex Objects
to lose data on save - Grav 1.7: Fixed
Flex Pages
unserialize issues if Flex-Objects Plugin has not been installed - Grav 1.7: Require Flex-Objects Plugin to edit Flex Accounts
- Grav 1.7: Fixed bad result on testing
isPage()
when using Flex Pages
- Blueprint validation: Added
-