Copied to clipboard

Flag this post as spam?

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


  • Ayo Adesina 419 posts 1001 karma points
    Feb 07, 2017 @ 14:06
    Ayo Adesina
    0

    Read only Content Picker - I know weird, but this is what I need.

    Currently I have a node picker on a document type.

    I'm using the Umbraco event methods to manage its value. This is working perfectly.

    However,

    I want to be able to display the value preferably just as a string like this:

    Home > About > Contact

    Making it a read only value, so the user can see it but can not change it. (That will be done by the Umbraco Events)

    Can anyone give me any pointers of how I can do this?

  • Ayo Adesina 419 posts 1001 karma points
    Feb 07, 2017 @ 17:24
    Ayo Adesina
    101

    I have managed to solve this so I thought I would answer the question for others.

    Instead of using a content picker, I used a label that will store string that looks something like this:

    "[1072] : Home >> Our company"
    

    The Umbraco events in my application create the string when saving and when reading the code parse's the int within the []

    Works really well. Hopefully this will help someone else.

  • 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