I've written a user control for dynamic content which will not render, and I realized that Page Property built in will not render either. The contents are shown in preview in editor but will not render.
I have <dynamiccontent> settings in episerver.config as well.
Can anyone please tell me the solution to render the dynamic contents? I've looked on the forums but have not found any solution. Offcourse want to get the built in Page property dynamic section to render first before I move to my custom control.
Has anyone witnessed this before?
Can you paste the html/code that you use for rendering the property?
I have a public string variable <%=VanPrice%> , the dynamic content gets the page reference of Park and calculates the cheapest Van.
I can see the price in Editor preview but not on the page itself
That will not work. You need to use an EPiServer:Property control (or DisplayFor if you are using MVC) in order for dynamic properties to render.
Do you mean that I need to define Episerver property and then pass the price into porperty?
why is the built in EpiServer Page property won't work?
Do you have any example?
If you are using web forms:The XHTML property that contains the dynamic content needs to be rendered using an EPiServer property control:
<EPiServer:Property PropertyName="MainBody" runat="server" />
You can also parse the xhtml manually, see:http://tedgustaf.com/blog/2009/9/parse-an-episerver-xhtml-property-with-dynamic-content/