Hi
i am looping pages in an item publisher, and I am trying to get the parent of the current page inside the loop like this
@{
string pageid=@i.GetInteger("ItemPublisher:Global.PageId").ToString();
var page = Dynamicweb.Content.Services.Pages.GetById(pageid);
var parentpage=Dynamicweb.Content.Services.Pages.GetById(page.ParentID);
}
But this gives an error like this
'PageService' does not contain a definition for 'GetById' and no accessible extension method...
I know what the message is saying, but I don´t know what gets me the id of the parent page.
Anyone who can help?
/Hans