Add piped filter for user names in template for List View #10812
jakob-bagterp
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you have added a user on a page with the User Picker as data type, then the default return value is just the user ID (i.e. -1, 1, 2, etc.) in the List View. It's more useful to get the user's name, which could be done similarly as the
ncNodeName
filter in the template.So, instead of just getting the user IDs in the List View...
... you would configure the view with a piped filter
{{ value | ncUserName }}
...... and then the user ID would be transformed into the user name by looking up the ID in the list of users.
PS: As I understand it,
ncNodeName
only checks for Media, Member, Document, but not User via theentityResource
service.Umbraco-CMS/src/Umbraco.Web.UI.Client/src/common/filters/nestedcontent.filter.js
Lines 49 to 59 in d428a45
Beta Was this translation helpful? Give feedback.
All reactions