I've been creating my own pages based on this tutorial: http://joelabrahamsson.com/entry/developing-with-page-type-builder-getting-started and now I'm trying to add dynamic content based on this tutorial: http://tedgustaf.com/en/blog/2011/4/creating-dynamic-content-in-episerver-cms-6-r2/
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?
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: http://tedgustaf.com/en/blog/2009/9/parse-an-episerver-xhtml-property-with-dynamic-content/ (havent tried it myself, especially not with UserControl-based Dynamic content)
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!