Editors now have access to the target
property of link
and linklist
fields, making it possible to specify whether a link should be opened in a new window. Note that your app needs to render this property for it to have an effect:
Editors now have access to the target
property of link
and linklist
fields, making it possible to specify whether a link should be opened in a new window. Note that your app needs to render this property for it to have an effect:
There are two new search operators, links_to
and refers_to
that let you find CMS objects linking to or referencing specific CMS objects.
links_to
is a workhorse that searches all attributes able to handle links or references, including those contained in widgets. You can use it, for example, to determine whether an image that has been uploaded is included anywhere in your content, or in pages of a specific type:
Of course, links_to
can be used for more than just that. You can also, for example, determine the pages that are or aren't linked by other pages, etc.
The refers_to
operator, on the other hand, is specialized in finding the CMS objects referencing specific objects via a specific reference
or referencelist
attribute. So object associations established using attributes of these types are no longer unidirectional but bidirectional, making it possible to implement all those use cases in which reverse lookups are required. For example, in a setting in which blogposts are equipped with a referencelist
attribute for associating them with one or more authors represented as individual CMS objects, you can now look up the blogposts that were (co)produced by a specific author:
This principle can be transferred to all cases in which one-to-many or many-to-many associations need to be modelled, e.g. products and the parts they consist of, employees and the departments they work for, etc.
The changelog reflects minor improvements and bugfixes that were made in addition to the changes listed above.
scrivito_widget_tag
, that can be used in the “show.html.*” template of widgets to specify additional attributes (including CSS classes) for the widget tag.Interface Builder improvements Filtering data by enum, boolean, date, and number attributes The Interface Builder’s data editor now also lets you filter data by attributes of the enum , boolean , date , and number types. This makes it much more convenient and intuitive to select and present data...
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 LinkTag supports data items 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. Accessing current data of a specific class The useDataScope and...
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...