6

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

1 Answer 1

14

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

((PublishLocationInfo)page.LocationInfo).PublishLocationUrl
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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