Custom label in matrix title

I tried to shorten the computer name in the standard matrix title for windows computer and tried the split using the displayName property. However this did not work and it just showed the full computer dns name. Any idea what could be wrong here?

“_type”: “celltile/status”,
“config”: {
“display”: {
“contentTemplate”: “{{displayName.split(’.’)[0]}}”
}
},
“title”: “State”

contentTemplate is the incorrect property

labelTemplate is the correct property:

"labelTemplate" a mustache template to render as custom label. Can contain any valid template, the context object for the current row will be provided as the template context. Default if none provided is {{displayName}}.
https://support.squaredup.com/v4/Walkthroughs/Tiles/HowToUseTheMatrixTile/#reference-cell-tile-definitions

Ups, I missed that. Thank you.

Not a problem :slight_smile: