How can you use a block list or block grid settings model property in a label in v16?

Hi Jake, there’s good and bad news.

Bad news is that in versions v14-16.1, there isn’t a built-in way to do this. It would require developing a custom UFM component to retrieve the Block’s settings data.

Good news is that in v16.2, support for Block Settings data has been added to UFM. Along with this, there is an advanced UFM syntax that can do JS-like expressions, (pretty much how AngularJS expressions worked). The syntax would be like this: ${ $settings.hide ? '(hidden)' : '' }.

A release candidate of v16.2.0 is currently out, and the final release will be this Thursday (4th Sept).

2 Likes