Skip to content

5.1.0

Choose a tag to compare

@engram-design engram-design released this 11 Nov 22:53
· 7 commits to craft-5 since this release

Added

  • Added Visual Choice and Visual Multi-Choice fields for single and multiple selections, with configurable options and selection limits.
  • Added Position fields with configurable spatial arrangements and keyboard navigation.
  • Added a new Width field with explicit percentage stops, Bar and Width samples styles, and configurable labels and tooltips.
  • Added Rating fields with whole-number values, configurable limits and defaults, optional clearing, and star, heart, circle or diamond symbols.
  • Added reusable Action Links fields for conditional editor links, with configurable labels, icons, images and button styles.
  • Added Buttons, Button group, Chips, List, Tiles, Cards, Swatches and Visual samples presentations for visual choices, plus Dropdown for single choices.
  • Added visual option metadata for descriptions, icons, images, colours, split colours, foreground/background pairs, gradients, width, aspect ratio, typography and shapes.
  • Added shared option sets managed in the control panel or configuration files, with project-config support and the option to copy choices into individual fields. Visual choices can also receive options dynamically through PHP events.
  • Added built-in and customisable presets for visual choices, Position, Width and Rating, with appearance settings and live field previews.
  • Added configurable icon and image galleries, with support for selecting Craft assets.
  • Added typed Twig values for visual choices, Position and Width, typed GraphQL output for visual choices and Position, and integer GraphQL output for Rating.
  • Added element previews, search, conditions, sorting and inline editing for the new content fields, according to each field’s capabilities.
  • Added command-line previews and optional conversion of existing Buttons, Colours, Text Size, Width, Stars and Triggers fields to their replacements.

Changed

  • Button Box now requires Craft CMS 5.10.11 or greater.
  • Triggers field JavaScript values are now output as written, without parsing element tags.
  • Triggers field links no longer output javascript:, data: or vbscript: URLs. Use a JavaScript trigger instead.

Deprecated

  • Deprecated the original Buttons, Colours, Text Size, Width, Stars and Triggers fields, which now display a Legacy label and log control-panel deprecation notices. Existing fields retain their settings and stored values; conversion is optional.