Apostrophe2 v2.39.0 Release Notes
Release Date: 2017-10-24 // over 6 years ago-
โ Unit tests passing.
โ Regression tests passing.
- ๐ Easier access to options. Introduced the
getOption
method to all modules. Callingself.getOption(req, 'sizes.large')
from your module's server-side JavaScript code, or justmodule.getOption('sizes.large')
from Nunjucks, will return the value ofself.options.sizes.large
for that module. You may also pass an array of keys, i.e.module.getOption([ 'sizes', 'large' ])
. This method is tolerant, it returns undefined if any part of the path does not exist. See also the new apostrophe-override-options which extends this feature to support customizing the returned value for any option based on the current page type, page settings, piece settings and locale. * Helpful warning when maximum area/widget loader recursion level is reached. Always use projections when adding joins to your schema to avoid a performance hit due to runaway recursion. - ๐ New
disabledTypes
option toapostrophe-pages
, primarily for use withapostrophe-override-options
. - ๐ Fixed UI bug relating to area menus at the bottom of the page.
- ๐ Fixed bug that caused a crash when invalid usernames attempted to log in. Thanks to Arthur.
- ๐ Easier access to options. Introduced the