Skip to content

v4.4.0

Compare
Choose a tag to compare
@tvdeyen tvdeyen released this 06 Jan 09:20

4.4.0 (2020-01-06)

A rather large release that includes a lot of deprecations for the upcoming 5.0 release.

The most notable changes are

Menus

Alchemy now has now a Menus module where you can manage multiple menus. A menu node can be just a name, a name and an url or an Alchemy::Page. The Alchemy page tree is now deprecated and will most likely be removed or replaced. A new render_menu helper has been introduced. Menus can have templates that live in app/views/alchemy/menus

A handy rake task has been introduced to help with the transition to Menus.

bin/rake alchemy:convert:page_trees:to_menus

Element editors are deprecated

Element editors (aka. app/views/alchemy/*_editor partials) have been deprecated and will be removed in Alchemy 5. If you used the editor partial to pass options into an essence editor, please move these settings either into the elements.yml content settings or if you used to pass dynamic values (to the EssenceSelect for instance) use a custom essence or for page selections use the newly introduced EssencePage.

If you put warnings and messages into the element editors, use the newly introduced warning and message keys for the element definition in the elements.yml.

Element views without suffix

Element view partials do not need the _view suffix anymore. You can safely remove them from your files. Please remember to also rename the your_element_view local variable into your_element.

Added a alchemyPageSelect jQuery function

Based on Select2 we introduced a new alchemyPageSelect jQuery function. Used in the new EssencePage editor, for the node page select and in the link dialogs.

Moved the anchor form into its own tab in the link dialog

The anchor form has been moved into its own tab for better distinction and UX of that feature.

Faster API

The API endpoints now eager load their associated records. Bye bye N+1 👋. Hello 🏎

EssencePage

For "real" element <-> page associations we introduced a new EssencePage essence.


I hope you like these changes and they help you to make Alchemy even better for you. Please consider to support my work on Open Collective

❤️ Thomas


All changes