Skip to content

What's New

Platform 2020.04.20

Platform · 2020.04.20 · 20 April 2020

ImprovementBug FixOn production sites

On production sites

This release lets you read a form's metadata in your templates and gives index pages a sensible default slug.

Read form metadata with form.metadata

A form's metadata is now available on the form object as form.metadata. You can also use Liquid in a metadata value. For example, a metadata key hello can hold a Liquid expression, and form.metadata.hello inside the form tag returns its result.

Default slugs for index pages

An index page now gets a default slug that points to its folder. For example, app/views/pages/my/page/index.html.liquid gets the slug my/page. By default, extra parts after the slug return a 404 error, so /my/page/abc returns 404. This is set by the max_level_deep property. If you set slug yourself, max_level_deep is not changed, so existing pages behave as before.

Also in this release

  • The Insites CLI now shows the correct resource name when you try to delete a resource that does not exist. Before, it showed a misleading Form configuration has not been found message