Accessing ExtensionPageData from a static context

by: Fredrik Karlsson

Mari has a post on how to access CurrentPage from a static context, so I thought I might explain on how to do the same in Extension.
It's actually quite easy. Since everything in Extension is EPiServer, you can pretty much do it the same way.

Dropit.Extension.Core.ExtensionPageData epd = 
      Dropit.Extension.Core.ExtensionPageData.Load(
         pageBase.CurrentPage.PageLink);
List<Dropit.Extension.Core.ContentFunctionData> cfd = 
     epd.GetAllContentFunctions();

 

You can read Mari's post here:
http://world.episerver.com/en/Blogs/Mari-Jorgensen/Dates/2008/4/Accessing-CurrentPage-from-a-static-context/

16 September 2008


Comments

Post a comment    
User verification Image for user verification  
EPiTrace logger