hey out there, we’re in the process of upgrading a v13 site to v16
we’ve run into a problem trying to convert this angular code that’s being used in a block list label:
{{link[0].nodeName || link[0].name ? link[0].name : link[0].url }} {{$settings.hide == '1' ? '(hidden)' : ''}}
the doctype property alias is link
and it’s using the multi url picker
datatype (in the use case, it has a max of 1 items so it’s effectively in single mode but we also have it in multi mode elsewhere in the site).
having found the post Block List Label from Multi Url Picker (Name not displaying) and our previous post How can you use a block list or block grid settings model property in a label in v16? we know we can do this:
{umbLink:link} ${$settings.hide ? '(hidden)' : ''}
which is working:
however we can’t seem to access the properties of the link? e.g if we add a link without a title:
we want to fallback to the url as no value comes out:
we’ve tried:
{umbLink:link.url}
{umbLink:link:url}
{umbLink:link[0].url}
{umbLink:link[0]:url}
interestingly, attempting the same but using umbValue
results in {object Object}
being output:
{umbValue:link:url}
so far, no joy…
has anyone out there managed to do something like this?!?! would to hear from you if you have