Partial content is being automatically open / closed on &quo

Posted by Community Admin on 03-Aug-2018 16:07

Partial content is being automatically open / closed on "Content Block" widget

All Replies

Posted by Community Admin on 24-Mar-2011 00:00

Hello everyone,

Here is my issue: On a page I got a "Content Block" widget with this HTML on it:
<div class="style1">
<div class="style2">
[Some HTML Suff here]

Then I add a custom widget that renders it own HTML

Then I add another content block to close the divs from the first content block:
</div>
</div>

When I save the page the first content block gets magically the closing tags
<div class="style1">
<div class="style2">
[Some HTML Suff here]
</div>
</div>

And the second content block get the opening tags.
<div>
 <div>
 </div>
</div>


Is there any way to render content in a more granular way, specially if that page gets partial content as I showed?

Posted by Community Admin on 24-Mar-2011 00:00

So, in this case I guess that what is needed is Widget nesting.
Is there a way to do that?

Posted by Community Admin on 29-Mar-2011 00:00

Hi Andres ,

You could use master pages to achieve the required layout:
.master

<div class="style1">
    <div class="style2">
        <asp:ContentPlaceHolder ID="htmlPlaceHolder" runat="server" />
        <asp:ContentPlaceHolder ID="widgetPlaceHolder" runat="server" />
    </div>
</div>

htmlPlaceHolder - it will hold the Content Block containing the HTML staff
widgetPlaceHolder - it will hold the custom widget

You could even use one placeholder for the Content Block and the widget.

Best wishes,
Pepi
the Telerik team

This thread is closed