Developer forum

Forum » Development » Any way i can use GetPageIdByNavigationTag in an email template?

Any way i can use GetPageIdByNavigationTag in an email template?

Rúni Gudmundarson
Reply

Replies

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Rúni,

GetPageIdByNavigationTag requires the Pageview context, as it sends the current AreaId to the method GetPageByNavigationTag, which returns the page object.
You can call that method on your own: Dynamicweb.Content.Services.Pages.GetPageByNavigationTag(AreaId, NavigationTag).

BR, Mario

 

You must be logged in to post in the forum