I have a property on a content type that is a label (integer). I need to retrieve the value stored in this property but not let it be changed in Umbraco. The problem, however, is that the value doesn't appear to get returned and so I wondered if that is by design? If so I guess I have to create another custom read-only property editor.
l
Lewis Heaton
09/26/2024, 6:45 AM
How are you retrieving the page that contains the properties?
p
ProNotion
09/26/2024, 6:47 AM
GetByContentType(contentType)
on
IPublishedContentCache
l
Lewis Heaton
09/26/2024, 6:48 AM
Is this using the ContentService, using CurrentPage in a RenderController, in the view? What service?
p
ProNotion
09/26/2024, 6:49 AM
I need it in my
IContentFinder
- Guessing I'd have to use the
ContentService
which isn't ideal
ProNotion
09/26/2024, 6:58 AM
Just noticed the value is disappearing so this could be a red herring. I will dig a little deeper.
ProNotion
09/26/2024, 7:06 AM
My fault, had a very early start 😴 Setting the value in the