November Happy Hour will be moved to Thursday December 5th.

determine whether a link is internal or extelnal link

Vote:
 

Hi

Is there a way to determine whether a pageLink is internal or external by using the pageData.pageLink?

 

I have a page (parent)  with subpages and want to determine the subpages link type to be able to treat them differently, can i do this by using the pageData.pageLink from the parent page?

#50011
Apr 08, 2011 13:56
Vote:
 

Hi

If I understand correctly the information you are looking for is in the LinkType property of the PageData object. If you have the parent page you will need to load the PageData for each child in order to determine if it's an internal or external link.

Regards

Per Gunsarfs
EPiServer Development Team

#50022
Apr 08, 2011 16:44
Vote:
 

Thank you!

#50071
Apr 12, 2011 10:45
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.