The LinkTag
component now supports data items as navigation targets. Passing a DataItem
to the to
prop causes the link to point to the details page of the item concerned.
The LinkTag
component now supports data items as navigation targets. Passing a DataItem
to the to
prop causes the link to point to the details page of the item concerned.
The useDataScope
and useDataItem
hooks can now be called with a data class name.
When useDataItem
is called with a data class name, then the current data is searched for the first DataItem
with the given class. If no such DataItem
can be found in the current data, a matching global DataItem
(via provideDataItem
) is returned if it exists.
When useDataScope
is called with a data class name, then the current data is searched for the first multi-item DataScope
with the given class.
With the latest Scrivito SDK, the behavior of the useDataItem
React hook changed. Previously, if the closest current data was a single-item DataScope, the hook still returned undefined
. Now, if the current data contains a single-item DataScope
, the hook returns a DataItem
that corresponds to the found scope.
An issue has been fixed that wrongly triggered the initializeCopy
callback when a widget was moved to another container.
Thanks again for using Scrivito!
Bugfix Release An issue with Scrivito.useDataLocator has been fixed. It prevented filters with reference data attributes from being evaluated properly. We apologize for any inconvenience this issue may have caused! Thanks again for using Scrivito!
Maintenance release This is a maintenance release with minor improvements. As always, we will keep you posted if there is anything interesting to report. Stay tuned! Thanks again for using Scrivito!
Interface builder improvements Data attributes For the application to utilize the attributes selected by content editors, the Scrivito SDK now includes a (beta) API for representing data attributes, DataItemAttribute . A data item attribute can be accessed from a data item via...
Defining custom attributes via the Interface Builder’s data editor The data editor now lets you add custom attributes to data classes. If, for example, you have a “Current user” data class that requires an attribute not specified in the editing configuration of this class, e.g., “email”, you can...
Bugfixes Data integration issue > DataItem#get > no longer requires a loading context, i.e., > Scrivito.load > or > Scrivito.connect > . We apologize for any inconvenience the above issue may have caused! Thank you for using Scrivito!
Interface Builder improvements DataScope#limit() API method The new DataScope#limit() method determines the maximum number of data items a DataScope may contain. It returns either a number indicating this limit, or undefined if no limit is set. Introducing Scrivito.currentLanguage()...
> > As you may have noticed, we have been continuously refining and expanding the Interface Builder. Now the time has come for a correspondingly enhanced data editor. > > The new data editor comes with an intuitive interface that provides a visual representation of a data locator as well as...
Interface Builder improvements Accessing a data scope from the current data It is now possible to access a DataScope from the current data using the new Scrivito.useData hook (which supersedes the Scrivito.useDataItem hook). The new hook always returns a DataScope . In order to check whether this...
For an improved overall user experience, we’ve aligned the user interface design of Scrivito with that of our email builder Dartagnan. We wanted to create a consistent look and feel for our customers working with these cloud products from JustRelate. The adjustments we made are geared towards...
Improvements Intermediately rendered components during loading time Scrivito.provideComponent now lets you give proper feedback to the visitor in cases where the actual component that is provided requires some time to load and render itself. This usually short time gap can now be bridged by...