Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » ItemPageId is empty

ItemPageId is empty

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Guys,

I am trying to retrive attribute from the Page of an Item.

The default Item.PageId is returned empty and I tried a few metthods that used to work on DW8 and they don;t seem to be available.

GetPageBySql for example. What is the most efficient way to get the Page object starting from the Item?

Thanks,

Adrian


Replies

 
Nicolai Pedersen
Reply

The tag should be the same. Can you post part of your template (and some context on how it is used?)

Getting a page in Dynamicweb 9 requires the use of the pageservice:

Dynamicweb.Extensibility.ServiceLocator.Current.GetInstance(Of IPageService)().GetPagesByParentID(12)

 

You must be logged in to post in the forum