ncNodeName not working in custom list view (v13.4....
# help-with-umbraco
r
I'm trying to get the name of my content node displaying in a custom list view and found the
ncNodeName
filter, but I can't get it to work. I have a Content Picker property called
from
on the child pages, so in the parent list view I added the template
{{ from | ncNodeName }}
which just shows empty space.
{{ from }}
shows the full page udi so is definitely the right alias, I've also tried
{{ from.udi | ncNodeName }}
which is an empty space too. Has anyone got a suggestion to make this work please?
s
IIRC the template for list view columns has the columns (property) value in the
value
variable. So
{{ value | ncNodeName }}
should do it. Maybe
{{ value[0] | ncNodeName }}
b
@Joe Glombek wrote an excellent blogpost about the Angular expressions and the first part mention listview and
{{value}}
variable in listview templates: https://joe.gl/ombek/blog/umbraco-angularjs-filter-cheat-sheet/
9 Views