Copied to clipboard

Flag this post as spam?

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


  • Aximili 177 posts 278 karma points
    Apr 28, 2013 @ 03:08
    Aximili
    0

    Selecting custom user control

    I have created 3 hardcoded usercontrols (.ascx)

    In Umbraco (in Content), I want the user to be able to select which ascx file to display on a page.

    How do I accomplish this? Do I use CustomDataType? But then what?

    Thanks in advance

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 28, 2013 @ 11:34
    Jan Skovgaard
    2

    Hi Hardi

    You can accomplish this by creating 3 macroes in the developer section, which you each map to the usercontrol they should display. On the macro remember to tick the checkbox that says if the macro should be able to insert in the rich text editor or not.

    Then you can pick the three macroes in the content section by clicking the "insert macro" button in the rich text editor.

    Hope this makes sense.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft