Is it by design that you can't retrieve the value ...
# help-with-umbraco
p
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
How are you retrieving the page that contains the properties?
p
GetByContentType(contentType)
on
IPublishedContentCache
l
Is this using the ContentService, using CurrentPage in a RenderController, in the view? What service?
p
I need it in my
IContentFinder
- Guessing I'd have to use the
ContentService
which isn't ideal
Just noticed the value is disappearing so this could be a red herring. I will dig a little deeper.
My fault, had a very early start 😴 Setting the value in the
ContentSavedNotification
instead of
ContentSavingNotification
means the value was never persisted.
3 Views