More in this section

Forums / Developing with Sitefinity / Get accessibility assigned to page

Get accessibility assigned to page

2 posts, 0 answered
  1. Jesse
    Jesse avatar
    12 posts
    24 Aug 2012
    27 Jul 2011
    Link to this post
    HI Team,

    Sitefinity version :  4.1 SP2

    We are developing one request base access system where if some user doesn't have access on particular page then we are redirecting to NoAccess page. There user will be provided with the message and button to send request to admin for assign him that role require for page.

    To get the role assigned to the page we are trying to get the page node  GetPAgeNodes() by passing the page url also tried using pate title but every time it is returning null. Following is code.

    PageNode pga = pageManager.GetPageNodes().Where(pD => pD.Title == currentAccessedPage).FirstOrDefault();

    We have gone through the existing threads of Sitefinity forum for getting page details.Most of the forum post has same solution.We also tried with fluen API but no luck.

    Guide us to get page details.



  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    24 Sep 2012
    27 Jul 2011
    Link to this post
    Hi Jesse,

    Try this:
    PageNode node = App.WorkWith().Pages().Where(p => p.Title == currentAccessedPage.Title).Get().FirstOrDefault();
    Mind that you will have to include the

    Hope that helps.


    Svetoslav Petsov
    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