Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Aren't links nodes? View modes: 
User avatar
Member
Member
robert-tailor.co - 8/15/2012 6:04:52 PM
   
Aren't links nodes?
I have a website called "mySite" with a shortcut/link at "~/About Us" in the CMS Tree.

If I call the following function:


TreeProvider tree = new TreeProvider(CMSContext.CurrentUser);
TreeNode existingNode = tree.SelectSingleNode("mySite", "/About Us", "en-AU");


...existingNode is null.

Why?

How *should* I retrieve a link at a specified location?

I jsut want to check if a link exists on a site at a specified location...

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 8/15/2012 6:34:00 PM
   
RE:Aren't links nodes?
You have to use the NodeAliasPath property of the node to select it like that.

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 8/15/2012 6:34:20 PM
   
RE:Aren't links nodes?
Try "/About-Us"

User avatar
Member
Member
robert-tailor.co - 8/15/2012 6:35:16 PM
   
RE:Aren't links nodes?
Jiveabillion wrote: Try "/About-Us"

D'Oh!

That was it.

Thanks!