November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
PageReference pr = ((PropertyPageReference)CurrentPage.Property["SelectBannerPage"]).PageLink;
MyPage.Pagelink = pr;
MyPage.DataBind();
public string PrintBanner()
{
PageData oPage;
PropertyPageReference pr = (PropertyPageReference)CurrentPage.Property["right_banner"];
oPage = Global.EPDataFactory.GetPage(pr.PageLink);
return oPage.Property["text_banner"].ToString();
}
Have a function that looks like this. It gets the dynamic property right_banner and cast it to a PropertyPageReference.
After that I use GetPage to get the page with the pagelink of my reference.
And after that I can access all normal properties of the different page. And for me I only needed one text filed. So I access that and return it.
Why dynamic is so good here is because the editors can set on banner page at the start of the pagetree and all pages shows that. But if they want a different banner page somewhere, they just add another page at that part in the tree.
/HAXEN