1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Can you get a page's properties from the PagesFacade?

Can you get a page's properties from the PagesFacade?

2 posts, 0 answered
  1. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    08 Sep 2011
    Link to this post
    If I have a PagesFacade() can I get individual properties (pageid, url, title) for a contained page? If so, do I get it directly from the PagesFacade(), or do I loop over a list and ask for each page from some other mechanism?
  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    13 Sep 2011
    Link to this post
    Hi Dan Sorensen,

    You need to get a specific page first, probably like this:

    var page = App.WorkWith().Pages().Where(p => p.Title == "Title").Get().First();

    Then you can retrieve the different properties in page.

    All the best,
    Lubomir Velkov
    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
2 posts, 0 answered