Inherit contentarea in Composer

morten.petersen
Member since: 2000
 

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?

#31228 Jul 10, 2009 11:24
  • morten.petersen
    Member since: 2000
     

    I found this useful blogentry by Marek Blotny.

     http://marekblotny.blogspot.com/2009/06/episerver-composer-how-to-load-content.html 

     

    Thank you :-)

    #31238 Jul 13, 2009 8:23