1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / custom user control - add content

custom user control - add content

3 posts, 0 answered
  1. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    03 Mar 2011
    Link to this post
    If I create a custom usercontrol to use within my sitefinity site, can I drag a content block on to it?
    Meaning, I want to create several custom user controls that will do different things, however, the content can change on them, So I want to be able to give my users access to the usercontrol which will have all the functionality, layout, format, etc included and all they need to do is add content.

    Is this possible?
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    04 Mar 2011
    Link to this post
    Hello CsharpGuy,

    Thank you for contacting Telerik Support.

    In order to give  users access to the layout, format, and ability to add content add content
    you need to create a control designer which will be used to handle the setting of the control. For rich text content you can use HtmlField control. I have attached sample user control with designer which uses the HtmlField.

    Greetings,
    Boyan Barnev
    the Telerik team
  3. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    04 Mar 2011
    Link to this post
    thanks that worked and got me on the right track.


    can I take this one step further meaning, have a predifend layout, such as

    I want content, image and a button, I want to define the location of the image so all the user has to do is add content next to the image and they can change their image at well also

    so I want it to look like

    {content}  {image}
                    {button}

    or
    {image}  {content}
                  {button}
3 posts, 0 answered