URI-retrieved URL of the Tridion page

Does anyone know if we can retrieve the published URL of the SDL Tridion page based on the URI? Ideally, I want to use the core service to do this.
If you’re talking about retrieving the published pages URL, can be completed in the following ways:

PageData page = client.Read("tcm:12-345-64", null) as PageData;
PublishLocationInfo info = (PublishLocationInfo)page.LocationInfo;
string url = info.PublishLocationUrl;

Does anyone know if we can retrieve SDL Tridion pages based on URI Published URL? Ideally, I want to use the core service to do this.

If you are talking about retrieving the published URL of the Page, it can be done in the following way:

< /p>

PageData page = client.Read("tcm:12-345-64", null) as PageData;
PublishLocationInfo info = (PublishLocationInfo)page.LocationInfo;< br />string url = info.PublishLocationUrl;

Leave a Comment

Your email address will not be published.