Can any one point me in the direction of any documentations on how to add properties to a Property Editor, so that for example I can have some thing like this in code.
Model.CurrentEvent.GetEvents(Date).
At the moment if I look at the Model for my CurrentEvent all values are showing as Null.
Is there a way to call a custome function on a Property Editor so when the page is rended it calls some cusme code to return a IList or IEnumarable, with out me having to make a call to the API I am writing and having to add all the ref and other code to the specific page.
I’m not entirely sure this is exactly what you’re looking for, but based on what I understood from your description, you might find Property Value Converters helpful for your scenario.
Hopefully, this helps point you in the right direction, but feel free to provide more details if there’s something specific you’re trying to achieve—I’d be happy to help further!
Property Editor
Hi,
Can any one point me in the direction of any documentations on how to add properties to a Property Editor, so that for example I can have some thing like this in code.
Model.CurrentEvent.GetEvents(Date).
At the moment if I look at the Model for my CurrentEvent all values are showing as Null.
Is there a way to call a custome function on a Property Editor so when the page is rended it calls some cusme code to return a IList or IEnumarable, with out me having to make a call to the API I am writing and having to add all the ref and other code to the specific page.
Thanks
I’m not entirely sure this is exactly what you’re looking for, but based on what I understood from your description, you might find Property Value Converters helpful for your scenario.
Here’s a link to the documentation that could give you more details on setting up Property Value Converters: https://docs.umbraco.com/umbraco-cms/customize-the-backoffice/property-editors/property-value-converters
Hopefully, this helps point you in the right direction, but feel free to provide more details if there’s something specific you’re trying to achieve—I’d be happy to help further!
is working on a reply...