Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

DynamicConten MainBody not rendering

Vote:
 

I have a standard episerver template (page.aspx), it contains a number of properties. One of the properties is MainBody of type Xhtml-string(>255) and an other property is called RightColumnEditor of the same type, Xhtml-string(>255).

I have the same DynamicContent in both properties, but it is only displayed in RightColumEditor. Why is that?

I want to display my DynamicContent in the MainBody.

#32760
Sep 16, 2009 16:04
Vote:
 
How is it rendered? I have seen examples where Xhtml-string properties are not rendered using the Property control, but instead output to the page as plain xhtml (writing directly to the response by using <%=%> syntax i markup for example). Then Dynamic Content won't render.
#32762
Sep 16, 2009 16:31
Vote:
 

Yes that was the problem. We rendered it by using <%= CurrentPageBody %> and in .cs setting CurrentPageBody = CurretnPage.Property["MainBody"].ToString().

We now use the property control. But is that the only way? Is there no way to handle the property in .cs. In some cases we load the MainBody of an other page.

#32771
Sep 17, 2009 9:26
Vote:
 

You can load a property from a different page into a Property control (set the PageLink aspnet-property of the property control). If you need to do other manipulations of dynamic content, Teds excellent post might interest you.

#32772
Sep 17, 2009 9:47
Vote:
 
Tank you
#32816
Sep 18, 2009 15:10
* 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.