Take the 2-minute tour ×
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It's 100% free, no registration required.

I have a Core Service app which shows links to published pages on the staging site, for this I am trying to get the page URL from the PageData object, but I cannot find a property for this? Is there any easy way to do this? I guess I can build it by traversing the structure groups, getting the page template etc, but that seems a bit of an effort compared to the equivalent TOM.NET: Page.PublishLocationUrl

share|improve this question
add comment

1 Answer

up vote 9 down vote accepted

You need to cast LocationInfo to PublishLocationInfo, something like this:

((PublishLocationInfo)page.LocationInfo).PublishLocationUrl
share|improve this answer
1  
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.