Content PlaceHolder Bug
I created a custom master page and uploaded it in Sitefinity. When I wrap a content placeholder in a "p" tag Sitefinity doesn't actually render the content between the tags. The content gets rendered below the end "p" tag.
So
<
p
>
<
asp:ContentPlaceHolder
ID
=
"Content"
runat
=
"server"
/>
</
p
>
<
p
>
</
p
>
Content gets rendered here
Hi Shawn,
All Sitefinity controls render at least one wrapping DIV around the content they display. So the HTML from your example is supposed to look like the one below.
<
p
>
<
div
>Content</
div
>
</
p
>
<
p
></
p
>
<
div
>Content</
div
>
<
div
>
<
div
>Content</
div
>
</
div
>
Hi Katia,
Thanks for the info. I guess the root issue goes back to the fact the Sitefinity is wrapping my Content Block in a div. I wish there was a way to specify IF the Content Block gets wrapped in a div. I've already started a long discussion that can be found here: http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/content-block-template.aspx.
I actually would like
<
p
>
<
asp:ContentPlaceHolder
ID
=
"Content"
runat
=
"server"
/>
</
p
>
<
p
>
Content
</
p
>
<
p
>
<
div
>Content</
div
>
</
p
>