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

14

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

((PublishLocationInfo)page.LocationInfo).PublishLocationUrl
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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