UFM syntax for name of node picked with Contentment DataList

Hi there :waving_hand:

I’m struggling with this problem:

I have an ElementType with a picker property that uses a Contentment DataList for selecting a Content node.

I can’t get Umbraco to display the node’s name in the label using UFM - I can get it to display the umb://document/12345abcde “GUID” but I have not succeeded getting the name. I’ve tried all of these:

  • {=pickerAlias} renders nothing
  • {umbContentName: pickerAlias} renders nothing
  • {pickerAlias} renders umb://document/abc123def456
  • ${pickerAlias} renders umb://document/abc123def456

Do I really have to build my own filter? I was hoping that the umbContentName built-in was able to do this…

Thanks :raising_hands:

/Chriztian

If it helps I can see umbContentName:value working in 17.0.2 in a collection view…

Somehow missed your comment - sorry;

The author property you’re referencing there is not from a Contentment DataList picker, right? That seems to be the problem for me, as it works just fine with a standard Content Picker.

/Chriztian

Looks like your issue is that Contentment stores as array.. but a mntp stores as a csv…

select dt.propertyEditorAlias, pd.textValue, cv.nodeid, cv.text FROM umbracoPropertyData pd
 LEFT JOIN umbracoContentVersion cv ON pd.versionId = cv.id
 LEFT JOIN umbracoNode n ON cv.nodeid = n.id
 LEFT JOIN cmsPropertyType pt on pd.propertyTypeId = pt.id
 LEFT JOIN umbracoDataType dt on pt.dataTypeId = dt.nodeId
  where
  
    (pd.textValue like '%2cb4c%'  or  pd.textValue like '%bd6a503a%') and 
  cv.nodeid = 1130 and cv.[current] = 1

Looks like your issue is that Contentment stores as array.. but a mntp stores as a csv…

I wish it were that simple… but it seems to be rooted in the fact that the umbContentName component uses the supplied property instead of its value. So even though the value of this picker is a UUID, the property is not a Content or Media (I think it even supports Memberas well) so returns null instead. :frowning:

I was hoping @leekelleher had run into this himself and found a solution (a la lkContentName in earlier versions).

It’s mostly that I’m not implementing Umbraco websites anymore, so one of those things that fell through the gaps during the Bellissima migration. :person_facepalming: (I blame the project manager! :joy:)

If anyone fancies making a UFM component, I’d be open to a pull request for a lkContentName . :heart_eyes:

1 Like