Copied to clipboard

Flag this post as spam?

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


  • andrew shearer 513 posts 663 karma points
    Apr 11, 2019 @ 05:09
    andrew shearer
    0

    Nested content template examples

    With Nested Content and the (RJP) Multi Url Picker now both being in the core as of umb7.14/umb8, what would the template be for showing the name from a Url Picker property? (given that the editor is configured to author 1 item only)

    maybe something like {{ pickerAlias | ncUrlName }} ?

    Could an example please be added to https://our.umbraco.com/documentation/getting-started/backoffice/Property-Editors/Built-in-Property-Editors/Nested-Content/

    Thanks,

    Andrew

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 11, 2019 @ 06:43
    Dave Woestenborghs
    2

    Hi Andrew,

    Looking at the source I don't think it is supported out of the box : https://github.com/umbraco/Umbraco-CMS/blob/v8/dev/src/Umbraco.Web.UI.Client/src/common/filters/nestedcontent.filter.js

    I would suggest you create a issue on the issue tracker for this : https://github.com/umbraco/Umbraco-CMS/issues

    And if you feel up to it you can always create a PR for it. I feel pretty sure it will get accepted.

    An other option would be to roll out your own filter. You can take the source code above as starting point.

    Dave

  • Eirik Nesje 1 post 73 karma points
    May 27, 2019 @ 15:40
    Eirik Nesje
    2

    Hi Andrew,

    This should work: (only tested in 7.14)

    {{ link[0].name }}
    

    Given that "link" is your id for the property containing the MultiUrl Picker.

  • John Beatrice 5 posts 92 karma points
    Nov 11, 2019 @ 15:41
    John Beatrice
    7

    You can do something like this to get the property values from the URL Picker, when in Single Mode (maximum one link allowed).

    {{pickerAlias[0]["name"]}}
    

    Because, the multiple url picker will return JSON like:

    [{"icon":"icon-umb-content color-blue","name":"Test Page","published":true,"queryString":null,"target":null,"trashed":false,"udi":"umb://document/f27240a932fc4b6298425dd303677d0d","url":"/test-page/"}]
    
  • emma burstow 43 posts 251 karma points MVP 3x hq c-trib
    Feb 02, 2020 @ 10:40
    emma burstow
    0

    Nice tip John! I really needed that. Thanks :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies