Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieving published URL of a Tridion page based on URI

Does anyone know if we can retrieve the published URL of an SDL Tridion Page based on the URI? Ideally I would like to do this using the Core Service.

like image 226
Kremena Lalova Avatar asked Feb 12 '13 15:02

Kremena Lalova


1 Answers

If you are talking about retrieving a Page's published URL, it can be done via:

PageData page = client.Read("tcm:12-345-64", null) as PageData;
PublishLocationInfo info = (PublishLocationInfo)page.LocationInfo;
string url = info.PublishLocationUrl;
like image 68
Alex Klock Avatar answered Nov 14 '22 14:11

Alex Klock