How to programatically get the start page of distant child in the tree

Vote:
 

Hello support

I need to programmatically get the start page of a hierarchical a few levels deep. is there a way to achieve this?

Looking at the image; i have the content reference of the content circled in blue. i need to get the startpage ( the highlighted content) from the contetnrefference.

Mind you, i'm doing this inside a custom router; so the

PageReference.StartPage;
&
ContentReference.StartPage;
do not work for this application, they only return the home page ref.
Thanks

TreeStructure

#173133
Dec 14, 2016 23:29
* 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.