Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter-Norbert Hrebicek 3 posts 73 karma points
    Mar 29, 2018 @ 08:05
    Peter-Norbert Hrebicek
    0

    Nested Content Template Field

    Good day!

    In my name template field i have {{linkNode}}, which is the property name of a content picker in that Nested Content. What i get as a result is an Umbraco UID. What i actually want is the value of a property of linkNode (respectively "Name") so the name of the Node is displayed instead.

    Thanks for any help in advance and have a nice day

    John

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Mar 31, 2018 @ 08:27
    Dave Woestenborghs
    4

    Hi Peter,

    Are you using Nested Content that comes with core or the standalone package version?

    With the core version and package greater than version 0.4 you can do this as name template

    {{linkNode | ncNodeName}}
    

    This will get the name of your linked node and shows it item name.

    I just added this to the docs this week : https://our.umbraco.org/documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Nested-Content#configuring-nested-content

    See the doctypes property

    Dave

  • Alan Draper 57 posts 140 karma points
    Dec 07, 2019 @ 20:06
    Alan Draper
    0

    Is the ncNodeName pipe still valid in Umbraco 8? I tried that and I still get "Item 1", "Item 2", etc.

    If I remove the pipe, I get a JSON representation of the linked node.

  • Proxicode 128 posts 324 karma points
    Jun 23, 2020 @ 22:57
    Proxicode
    0

    Just tested in 8 and it seems that "{{linkNode | ncNodeName}}" does still work :)

  • Peter-Norbert Hrebicek 3 posts 73 karma points
    Apr 04, 2018 @ 09:02
    Peter-Norbert Hrebicek
    0

    That works like a charm, thank you.

    Have a nice day! Peter

Please Sign in or register to post replies

Write your reply to:

Draft