Partial content is being automatically open / closed on "Content Block" widget
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?
So, in this case I guess that what is needed is Widget nesting.
Is there a way to do that?
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>