Copied to clipboard

Flag this post as spam?

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


  • Darren Hunter 139 posts 231 karma points
    Oct 04, 2023 @ 15:01
    Darren Hunter
    0

    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

  • Afreed 33 posts 158 karma points
    1 week ago
    Afreed
    1

    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!

Please Sign in or register to post replies

Write your reply to:

Draft