Hi there,
How do you get the name of the document type, on the label for a block list item?
In Umbraco 13 I had this “$contentTypeName“, but on 17 it’s not working:
{{ title || $contentTypeName }}
Hi there,
How do you get the name of the document type, on the label for a block list item?
In Umbraco 13 I had this “$contentTypeName“, but on 17 it’s not working:
{{ title || $contentTypeName }}
Hi @davidsantos
I don’t believe that’s possible without a custom UFM component, someone else asked a similar question here:
You could just use a fallback like this and hard code the content type name:
{umbValue: title | fallback:Rich Text Block}
Or see if you can create a custom UFM component.
Justin
But if I don’t fill the label at all, the name of the document type appears.
Yes, the fallback will be the hard coded text which is the document type, is that not what you wanted?
I wanted document type name on the fallback.
Let me see if I can put an example together…