Copied to clipboard

Flag this post as spam?

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


  • Ulf Möllerström 71 posts 248 karma points
    Nov 14, 2023 @ 17:05
    Ulf Möllerström
    0

    Property Editor Configuration

    I've looked at the tutorial for a property editor, how to add a configuration and get the gist of it, but I'd like a simple textbox instead of an textarea, but can't find any solution - non of my guesses works.

    enter image description here

    Also I'd prefer a dropdown or radio-buttons for the options:

    • category
    • subcategory1
    • subcategory2

    But having no luck finding out how to achieve that...

  • Chris 8 posts 110 karma points c-trib
    Nov 15, 2023 @ 00:20
    Chris
    100

    Hey Ulf, you should be able to use "textstring" instead of "textarea" for a simple textbox.

    As for a dropdown, you may have to switch to configuring the property editor with a C# class instead of inside your package.manifest (as far as I can tell it does not support more 'complex' configuration options like a dropdown)

    I found this comment on another forum post that may help you with getting the dropdown set up: https://our.umbraco.com/forum/using-umbraco-and-getting-started/108968-create-dropdown-list-as-prevalue-in-custom-property-editor#comment-338231

  • Ulf Möllerström 71 posts 248 karma points
    Nov 15, 2023 @ 08:07
    Ulf Möllerström
    0

    Thank you very much!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies