Try our conversational search powered by Generative AI!

Removing div tag before dynamic content

Vote:
 

Hi,

I have added dynamic content in a property. When it render on page, it comes under <div> tag. Please help me to render dynamic content data without <div> tag.

Thanks in advance...

 

#45862
Nov 19, 2010 17:33
Vote:
 

Are you using the default Page Property dynamic content which is included in the default install?

If so, I think it depends on the underlying property you're including.  I'm reflecting thought that class, and I see that the dynamic content instatiates an EPiServer Property control based on the property you're including.  I don't know the exact rules, but an XHTML property, for instance, might be surrounded by a DIV, while a simple string might be surrounded by a SPAN.

So, what type of property are you embedding with dynamic content?

#45865
Nov 20, 2010 6:59
Vote:
 

If you take a look at this blog post

http://world.episerver.com/Blogs/Anders-Hattestad/Dates/2010/8/Preview-on-dynamic-content/

you can see that this apporoce creates a control structur.

#45866
Nov 20, 2010 10:11
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.