Releases: craftcms/cms
Releases · craftcms/cms
5.8.1
- Element selector modals now clear out the search input when opened. (#17480)
- Improved relational fields’ inline search behavior. (#17550)
- Fixed a bug where an unsaved changes warning would be shown when leaving an element edit form, if a conditional field had just been shown or hidden in the last autosave. (#17518)
- Fixed a bug where Generated Fields settings were still interative when
allowAdminChangeswas disabled. (#17535) - Fixed a bug where it was possible to select entries without URLs in Link fields. (#17536)
- Fixed a “Request Header Or Cookie Too Large” error that could occur in the control panel. (#17531)
- Fixed a bug where source headings’ expanded/collapsed states weren’t persisting. (#17541)
- Fixed a bug where Assets fields’ inline search inputs weren’t respecting the fields’ Sources settings. (#17538)
- Fixed an error that could occur if a user photo’s file was missing. (#17537)
- Fixed a bug where the currently-selected element source wasn’t shown when its heading was collapsed. (#17530)
- Fixed an error that could when querying for elements that didn’t have a field layout via GraphQL. (#17542)
- Fixed a bug where Assets fields set to restrict uploads to a single location weren’t getting inline search inputs.
4.16.1
5.8.0
Note
Elements with Link fields created before Craft 5.5.0 should be resaved to take advantage of the new “is of type” condition rule operator. (#17277)
Note
Elements with multi-instance relation fields created before Craft 5.3.0 should be resaved to ensure their condition rules continue to work properly. (#17295)
Content Management
- Element edit pages now have “Validate [type]” actions. (#17316)
- Matrix fields set to the “inline-editable blocks” view mode now have “Expand all blocks” and “Collapse all blocks” actions. (#17141)
- Relation fields set to a single element source will now show a search input by default. (#17497)
- Link fields’ condition rules now have an “is of type” operator. (#17277)
- Link fields now allow URLs without TLDs. (#17450)
- Link fields’ default URL labels now strip the trailing slash from URLs that don’t include URIs.
- Content previews for Plain Text fields are now shown in a fixed-width font if “Use a monospaced font” is enabled. (#17447)
- Read-only relational fields now display element chips/cards more consistently with editable fields. (#17146)
- Added the “Notification Position” and “Sideout Position” user preferences. (#17169)
- Button Group, Dropdown, and Radio Buttons fields now display their selected option’s icon/color within field previews. (#17178)
- Improved the wording of validation errors caused by relational fields’ “Validate related [type]” settings. (#9960)
- URL chips within Link fields are now truncated if wider than the container, and have a “Copy URL” action. (#17339)
- Users with “Moderate users” permission can now send activation emails. (#17362)
- Source headings within element indexes are now collapsible. (#17226)
- Element condition builders now show condition rules for custom fields with duplicate names. (#17361)
- After creating a new entry or category via a selector modal, the modal will now set its search input to the new element’s title. (#17480)
Accessibility
- The Crop tool within the Image Editor is now screen reader and keyboard accessible. (#17358)
- Lightswitches now have a checkmark icon when turned on, and improved styling. (#17492)
Administration
- Added the “Content Block” field type. (#17424)
- Added support for Generated Fields. (#17426)
- Matrix fields’ entry type selections can now be grouped. (#17425)
- Matrix fields with more than five entry types now show a search input within entry creation menus. (#17425)
- Relation fields set to a single element source now have a “Show the search input” setting. (#17497)
- Icon fields now expose the Font Awesome icon styles supported by the selected icon. (#17419)
- Icon fields now have a “GraphQL Mode” setting, with “Full data” and “Name only” options. (#17419)
- It’s now possible to customize the thumbnail alignment within element cards. (#17193)
- Assets and Categories fields no longer have “Show the site menu” settings. (#17156)
- Entry type edit pages now have a “Save as a new entry type” action. (#15977)
- Entry types can now have descriptions, which manifest as info icons within entry type chips. (#17483)
- Added the “Delete entries for site” and “Delete other users’ entries for site” user permissions, for sections with a propagation method set to “Let each entry choose which sites it should be saved to”. (#17313)
- Entry action menus now have “Entry type settings” and “Section settings” actions, for admin users on environments that allow admin changes. (#10112, #17438)
- “Field” condition rules for entry conditions now include an “is empty” operator.
- Address conditions can now have a “Field” rule. (#17502)
- The
accessibilityDefaultsconfig setting can now containnotificationPositionandslideoutPositionkeys. (#17169) - The
autoLoginAfterAccountActivationconfig setting no longer applies to the password reset flow. (#17522) - The full suite of Font Awesome icons is now available to Icons fields. (#17440)
Development
- Added
<handle>EntryGraphQL queries for each Single section, which resolve to the single entry within them. (#17278) - GraphQL requests now return error messages for client-safe exceptions, even if Dev Mode is disabled. (#17504)
Extensibility
- Element edit pages now support being passed a hashed
returnUrlquery string param. (#17137) - Added
craft\base\Describable. - Added
craft\base\Element::EVENT_RENDER. (#17188) - Added
craft\base\Element::partialTemplatePathCandidates(). - Added
craft\base\ElementInterface::getGeneratedFieldValues(). - Added
craft\base\ElementInterface::render(). - Added
craft\base\ElementInterface::setGeneratedFieldValues(). - Added
craft\base\ElementTrait::$updateSearchIndexImmediately. - Added
craft\base\Field::RESERVED_HANDLES. - Added
craft\base\FieldInterface::showStatus(). - Added
craft\elements\Asset::setMimeType(). - Added
craft\elements\ContentBlock. - Added
craft\elements\db\ContentBlockQuery. - Added
craft\events\RenderElementEvent. (#17188) - Added
craft\fieldlayoutelements\BaseField::showStatus(). - Added
craft\fields\BaseRelationField::$showSearchInput. - Added
craft\fields\BaseRelationField::canShowSiteMenu(). - Added
craft\fields\BaseRelationField::hasSelectionCondition(). - Added
craft\fields\BaseRelationField::showSearchInput(). - Added
craft\fields\conditions\GeneratedFieldConditionRule. - Added
craft\fields\conditions\LinkFieldConditionRule. - Added
craft\fields\data\IconData. - Added
craft\fields\data\OptionData::$color. - Added
craft\fields\data\OptionData::$icon. - Added
craft\gql\arguments\elements\ContentBlock. - Added
craft\gql\interfaces\elements\ContentBlock. - Added
craft\gql\resolvers\elements\ContentBlock. - Added
craft\gql\types\IconData. - Added
craft\gql\types\elements\ContentBlock. - Added
craft\gql\types\generators\ContentBlock. - Added
craft\gql\types\generators\IconDataType. - Added
craft\gql\types\input\ContentBlock. - Added
craft\helpers\Cp::buttonGroupFieldHtml(). - Added
craft\helpers\Cp::buttonGroupHtml(). - Added
craft\helpers\Cp::editableTableHtml(). - Added
craft\helpers\Cp::generatedFieldsTableHtml(). - Added
craft\helpers\ElementHelper::isMultiSite(). - Added
craft\helpers\ElementHelper::setProvisionalDraftUser(). - Added
craft\models\EntryType::$description. - Added
craft\models\EntryType::$group. - Added
craft\models\FieldLayout::getCardThumbAlignment(). - Added
craft\models\FieldLayout::getGeneratedFieldByUid(). - Added
craft\models\FieldLayout::getGeneratedFields(). - Added
craft\models\FieldLayout::isUiElementIncluded(). - Added
craft\models\FieldLayout::resetUids(). - Added
craft\models\FieldLayout::setCardThumbAlignment(). - Added
craft\models\FieldLayout::setGeneratedFields(). - Added
craft\records\ContentBlock. - Added
craft\services\Gql::defineContentArgumentsForGeneratedFields(). - Added
craft\web\Request::getValidatedQueryParam(). craft\elements\Asset::getMimeType()now returns the file’s actual MIME type (rather than the MIME type associated with the file’s extension), for locally-stored assets. (#17254)craft\fields\data\ColorDatanow extendscraft\base\Modeland includesblue,green,hex,luma,red, andrgbattributes in its array keys. (#17265)craft\services\Assets::replaceAssetFile()now has a$mimeTypeargument.craft\services\Users::saveUserPhoto()now has a$mimeTypeargument.craft\validators\HandleValidatornow supportsvalidateValue().- Added the
buttonGroupandbuttonGroupFieldmacros to the_includes/forms.twigtemplate. - Added the
_includes/forms/buttonGroup.twigtemplate. - The
_layouts/cp.twigtemplate now supports passing anactionButtonvariable. ([#17423](https://github.com/craftcms/cms/pull...
4.16.0
Content Management
- Element condition builders now show condition rules for custom fields with duplicate names. (#17361)
Administration
- Assets and Categories fields no longer have “Show the site menu” settings. (#17156)
- Improved the wording of validation errors caused by relational fields’ “Validate related [type]” settings. (#9960)
Extensibility
- Added
craft\fields\BaseRelationField::canShowSiteMenu(). - Added
craft\queue\BaseBatchedJob::after(). - Added
craft\queue\BaseBatchedJob::afterBatch(). - Added
craft\queue\BaseBatchedJob::before(). - Added
craft\queue\BaseBatchedJob::beforeBatch(). craft\fields\data\ColorDatanow extendscraft\base\Modeland includesblue,green,hex,luma,red, andrgbattributes in its array keys. (#17265)- Fixed an error that could occur when indexing assets. (#17240)
- Fixed a bug where some partially-translated system languages were available for users’ Language preferences.
5.7.11
- Table fields with “Static Rows” enabled now get populated with the default row values when their value is
null. (#17452) - Added
craft\fields\linktypes\BaseLinkType::isValueEmpty(). - Added
craft\services\Auth::getAuthErrorMessage(). - Added
craft\services\ElementSources::sourceExists(). - Added new icons. (#17441)
- Updated yii2-debug to 2.1.27. (#17115)
- Fixed a bug where Number fields’ Prefix Text and Suffix Text values weren’t getting translated. (#17467)
- Fixed a bug where some address field values could be cleared out unexpectedly when editing an address. (#17468)
- Fixed a PHP error that could occur when rendering a field layout’s form, if it didn’t have customizable tabs.
- Fixed an error that could occur when loading control panel resources on the front end.
- Fixed a bug where entries’ section breadcrumbs were getting hyperlinked even if the section’s source was disabled. (#17411)
- Fixed a bug where entries that were pasted within a Matrix field were losing custom field translations for other sites. (17414)
- Fixed a bug where Matrix fields’ chips were getting “Copy all entries” actions. (#17404)
- Fixed a bug where Link fields were validating if a deleted element was selected. (#17409)
- Fixed a bug where copy buttons weren’t working on table rows that had been reordered. (#17459)
- Fixed a bug where clicking on a structured element’s drag handle was causing its row to be selected. (#17461)
- Fixed a bug where bulk actions weren’t working within embedded element indexes, when shown within a slideout. (#17468)
- Fixed a bug where autosuggest inputs weren’t getting correct
aria-describedbyandaria-labelledbyvalues. (#17413) - Fixed a bug where Matrix fields’ entry types were retaining their original names and handles as override values, if the entry type was edited via a slideout from the Matrix field settings. (#17471)
- Fixed a bug where nested Matrix entries could be missing when rendering an element form with validation errors. (#17470)
- Fixed a bug where nested entry revisions were getting deleted when their owner revision was pruned, even if they also belonged to other owner revisions. (#16443)
- Fixed a bug where private plugins’ icons were linking to the Plugin Store from the Plugins index page. (#17486)
- Users’ maximum invalid login counts now factor in invalid two-step verification attempts. (#17454)
4.15.7
- Table fields with “Static Rows” enabled now get populated with the default row values when their value is
null. (#17452) - Updated yii2-debug to 2.1.27. (#17115)
- Fixed a bug where Number fields’ Prefix Text and Suffix Text values weren’t getting translated. (#17467)
- Fixed a bug where some address field values could be cleared out unexpectedly when editing an address. (#17468)
5.7.10
5.7.9
- Fixed a bug where it wasn’t possible to copy nested entries within Matrix fields set to cards or element index views, if the Max Entires setting had been reached. (#17373)
- Fixed a bug where entry type selectors weren’t showing
0icons. (#17381) - Fixed a bug where Selectize menus could remain visible in the top-left corner of the screen, after selecting an option with the keyboard. (#17374)
- Fixed a bug where custom fields’ search keywords weren’t getting indexed. (#17385)
- Fixed an error that could occur when pasting elements. (#17388)
- Fixed styling issues. (#17375, #17384, #17389)