content apps and node name vs name property

14 views
Skip to first unread message

Samuli Saarinen

unread,
Dec 12, 2024, 7:41:17 AM12/12/24
to Magnolia User Mailing List
Hi,
What might be the correct way to handle "name" for content types. It's kinda confusing that each node has potentially 2 names that some times are the same but also different. 

Like I have a custom conten app and I create new content and enter something to "name" field which shows in both node name and name property. Then I use copy/paste to duplicate the node and this process ends up creating a new node (and if pasted to the same parent) will name the node with unique name but only the JCR node name not the property so I end up with UI showing the name property of both nodes where the names are identical but each having unique node name under the hood.  Is there a correct way to deal with the name or is it just the complete mess that it seems to be? (Not as bad as assets having 3 names though but let's not get in to that in this post)

BR, Samuli

Roman Kovařík

unread,
Dec 12, 2024, 9:43:06 AM12/12/24
to Magnolia User Mailing List, samuli....@gmail.com

Hi Samuli,

The nodeName property can, unlike the JCR node name, contain special characters. The restricted set also depends on your UTF8 settings.

I noticed that the duplicate action includes some logic to update the name properties. If the copy/paste functionality doesn’t handle this, I’d consider it a bug.


Regards,

Roman

Reply all
Reply to author
Forward
0 new messages