Querying a Page by URL

Posted by Community Admin on 04-Aug-2018 16:12

Querying a Page by URL

All Replies

Posted by Community Admin on 17-Apr-2013 00:00

I'm trying to modify a bunch of pages (content and properties) based on CSV data. The only "anchor" I have is the full path to the page.

Given "/here-is/the-page-i-want", how do I get it?

Drawing a complete blank :/

Posted by Community Admin on 18-Apr-2013 00:00

In case anyone else is wondering, I ended up just doing this:

var page = pageManager.GetPageNodes().ToList().FirstOrDefault(x => x.GetFullUrl() == url);

ToList() isn't ideal but it won't be used in production so... :)

Posted by Community Admin on 22-Apr-2013 00:00

Hello Tim,

Thank you for sharing the information with the community! I am sure that it will be useful to other users as well!

Kind regards,
Victor Velev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed