Copied to clipboard

Flag this post as spam?

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

  • DG 3 posts 93 karma points
    1 week ago

    Get Block list item label from multinode picker field value

    I have a block list component 'Quotes' which has a block list field containing a collection of 'Quote' items.

    Each quote item has a field 'Author' which is using an Umbraco Multinode picker (limited to a single node) which allows the editor to pick a page in the tree as the author content.

    I'm wondering if it's possible to reference a field from the 'Author' page in the nested block items label?


    Quote - {{ author.firstName }}

    Would would give an output like:

    Quote - John Smith

    I don't see anything in the documentation around this though you can do stuff like reading from the settings model.

    I've done some digging to try to figure out what's actually stored when you use a Multinode picker set to a single item and it seems to store a ref to the page via string - see 'author' property:

    enter image description here

    So I guess {{author.firstName}} would never work as you need the actual author instance/object.

    Is there some kind transformation or helper method that we can use to get at the pages data via this field, or some other way of achieving the same effect?


Please Sign in or register to post replies

Write your reply to: