To minimize the administration task for our customer we want to base the content of a particular extensionarea on inheritance. It's not a problem to find the contents, for the page above:
var epd = ExtensionPageData.Load(CurrentPage.ParentLink);
var rightContentArea = epd.GetContentAreaById("Right");
if (rightContentArea != null && rightContentArea.ContentFunctions != null && rightContentArea.ContentFunctions.Count > 0) { foreach (var a in rightContentArea.ContentFunctions) { // then what } }
But what do I do next, to render these contentfunctions?
To minimize the administration task for our customer we want to base the content of a particular extensionarea on inheritance. It's not a problem to find the contents, for the page above:
var epd = ExtensionPageData.Load(CurrentPage.ParentLink);
var rightContentArea = epd.GetContentAreaById("Right");
if (rightContentArea != null && rightContentArea.ContentFunctions != null && rightContentArea.ContentFunctions.Count > 0)
{
foreach (var a in rightContentArea.ContentFunctions)
{
// then what
}
}
But what do I do next, to render these contentfunctions?