SaaS CMS has officially launched! Learn more now.

Problem with dynamic content and the pagetypebuilder


Hi everyone

I've been creating my own pages based on this tutorial: and now I'm trying to add dynamic content based on this tutorial:

Something goes wrong and instead of showing the contents of the User Control, it seems to be literally showing the User Control, I get the name of the control and two (not functioning, not properly displayed) buttons below.

If I understand correctly, to get this to work I need to change the way I call the properties. So I tried to change "<li><%# Container.DataItem %></li>" to "<li><%# CurrentPage.PageName %><EPiServer:Property PropertyName="PageName" runat="server" /></li>" just as a test but still doesn't work :s

Can anyone tell me what I'm doing wrong?



Sep 07, 2011 11:05

Are you rendering the property containing the dynamic content with something like <%= CurrentPage.MyProperty %>? That sadly doesn't work with Dynamic content... You have to use the <EPiServer:Property /> or perhaps try something like this: (havent tried it myself, especially not with UserControl-based Dynamic content)

Sep 07, 2011 11:49

Ah!!! I get it now, I wass only looking at the properties in the user control and not at the page that would hold the user control! 

Thank you so much!

Sep 07, 2011 12:23
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.