Copied to clipboard

Flag this post as spam?

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


  • Jesper Mayntzhusen 3 posts 84 karma points MVP
    Oct 23, 2023 @ 15:18
    Jesper Mayntzhusen
    0

    How to use a select property editor with Konstrukt?

    Having trouble figuring out how to use a "Dropdown" property editor within a Konstrukt editor.

    I like the option made in https://our.umbraco.com/packages/backoffice-extensions/konstrukt/konstrukt-support/111574-is-it-possible-to-have-a-filter-set-with-options-from-the-db where I can specify my own filter option:

    .AddFilterableProperty(x => x.Country, filterConfig => filterConfig
        .SetOptionsBuilder<CountryOptionsBuilder>()
        .SetMode(KonstruktFilterMode.SingleChoice))
    

    But having trouble finding something similar from within an Editor view. And if I just select a property and set the type to "dropdown", then it throws a Newtonsoft json exception in the backoffice.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Oct 24, 2023 @ 11:51
    Matt Brailsford
    100

    It should be a case of passing the data type name as it appears in the backoffice. In this case do you have a data type named “dropdown”? (distinction being I’m talking data types not property editors)

  • Jesper Mayntzhusen 3 posts 84 karma points MVP
    Oct 25, 2023 @ 08:12
    Jesper Mayntzhusen
    0

    Ahh yep, I was totally thinking property editors and not data types, so had thought I would set prevalues, etc via the fluid config.

    But ofc using a datatype makes it super simple, and with the bonus of being able to use Contentment for it 🙂

    Thanks Matt it was a misunderstanding on my part!

Please Sign in or register to post replies

Write your reply to:

Draft