How to add controls inside contentblock - Bugs & Issues - Bugs & Issues - Progress Community
 Bugs & Issues

How to add controls inside contentblock

  • How to add controls inside contentblock
  • Sir/Madam,

    I added custom controls in sitefinity cms and able to see & add them in the pagetemplate. But my question here is I need to add couple of htmls to wrap controls in the same row. My current production web page has like below:

        <section class="row">
          <ctrls:HomePageHero ID="ucHomePageHero" runat="server"></ctrls:HomePageHero>
          <ctrls:MarketSnapshot ID="ucMarketSnapshot" runat="server" visiable="false"></ctrls:MarketSnapshot>

    So I need to add    <section class="row"> in the page template before adding custom controls and then need to add </section> after custom controls. Each pages has their own htmls like div, section in between the user controls to size, wrap in a same row, styling.

    How to do this in the sitefinity cms 8.2. Please let me know.



  • Hello,

    First, you need to register HomePageHero and MarketSnapshot as widgets in Sitefinity so you can drag and drop them on to a Sitefinity page:

    Next order have them contained by specific HTML, in this case section, you need to choose one of two methods:

    Have custom markup in the base masterpage used for the pages with a contentplaceholder inside the section so you can drop the controls into it:
    Or, create a custom layout control using section instead of div:

    I hope this helps.

    Seth Cleaver
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items