More in this section
Forums / Developing with Sitefinity / Query All Pages based on a "Role"

Query All Pages based on a "Role"

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Adi
    Adi avatar
    0 posts
    Registered:
    14 Jan 2016
    16 Sep 2016
    Link to this post

    I am using latest version of Sitefinity.

    In our system, we have 3 types of "User Roles". Is it possible using API to get all the pages (including child pages) in the system at once to build the main navigation based on Permission that is set for the pages?

    For example, a page might have none, 1, 2 or 3 Roles assigned to it. Depending on the logged in user's Role, the page should or should not show in the main navigation.

    (I did come across articles where it grabs each page and checks the permission on that. But I am looking for something in bulk and NOT running through each page)

    Thanks in advance.

     

1 posts, 0 answered