Search code examples
umbracoumbraco7

Umbraco - 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?


Solution

  • 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.