More in this section

Forums / General Discussions / Pages Module Backend - Hide Pages A User Cannot Edit

Pages Module Backend - Hide Pages A User Cannot Edit

9 posts, 0 answered
  1. Russell
    Russell avatar
    25 posts
    Registered:
    08 Apr 2009
    21 Mar 2011
    Link to this post
    Hi,

    I have various users who are in charge of different sections of a website, and based on their permissions can edit their corresponding pages.  In SF 3.7, the Pages Module displayed a Site Map, and only displayed the pages that the user was able to view/edit.  This worked perfectly.

    In 4.0, the Pages Module seems to display every single page, and simply grays out pages that are not viewable or editable for a given user.  Is there anyway to hide certain pages from users based on permissions?  I would like for my users to only see a list of the pages they are able to edit when they view the Pages Module.

    Thanks!
  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    22 Mar 2011
    Link to this post
    Hello Brad,

    Thank you for contacting Telerik Support.

    If a parent page is set as non-navigable it will not be part of the SiteMap - this means that when you try to bind the menu to a non existing node you would get an error.

    Instead of binding your widget to a SiteMapDataSource control you can bind it to a collection of pages which later you can use to retrieve the child pages a page using the pages API (either fluent or native) and hide them.

    The ability to automatically hide pages for users who are not allowed to view them is planned for Q2.

    I hope this information helps. I will be happy to assist you if you have any further questions.

    Greetings,
    Victor Velev
    the Telerik team
  3. Russell
    Russell avatar
    25 posts
    Registered:
    08 Apr 2009
    22 Mar 2011
    Link to this post
    Hi Victor,

    Thank you for the explanation.

    Can you possibly review the steps needed to accomplish the idea you've outlined?

    Instead of using the Pages module, would I create a new module?  How would I bind a collection of pages to the new widget?  Would I then have a different module for each group of users with different permissions to different pages?  Can you show an example of what the code would look like to retrieve the child pages and hide them?

    Thanks!
    Brad
  4. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    24 Mar 2011
    Link to this post
    Hello Brad,

    Are you trying to hide the pages from the navigational controls or from the backend of Sitefinity administration page?

    Greetings,
    Victor Velev
    the Telerik team
  5. Russell
    Russell avatar
    25 posts
    Registered:
    08 Apr 2009
    24 Mar 2011
    Link to this post
    I am trying to hide the pages in the backend Administration / "Pages" page.  Our site has over 1,000 pages (all of which are public), broken into 20-30 parent pages which can contain the permissions for all of their children.  When our authors visit the "Pages" page in the backend, they need to see a list of only the pages they can edit.


    Thanks again,
    Brad
  6. ZK
    ZK avatar
    23 posts
    Registered:
    23 Nov 2010
    24 Mar 2011
    Link to this post
    I just wanted to chime in and second this request. While our site isn't as big as Brad's, it's big enough that this would be a help.
  7. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    25 Mar 2011
    Link to this post
    Hello Brad and Zak,

    You can set different roles and permissions to members who you want to be able to edit specific categories of pages. If some editors are not allowed to edit some pages they will be grayed out - this is by design. However these users will not be able to edit, delete or create pages in the grayed out categories.

    Kind regards,
    Victor Velev
    the Telerik team
  8. Russell
    Russell avatar
    25 posts
    Registered:
    08 Apr 2009
    25 Mar 2011
    Link to this post
    Hi Victor,

    I think I understand how the page's permissions works - I was primarily asking if there was a way to have the pages not display instead of being grayed out.  I thought there might be a setting to edit somewhere, or a file that contains this logic that can be easily altered.

    For sites with a large number of pages I'll need some sort of way to filter the list of pages, to only display relevant pages to users.


    Thanks,
    Brad
  9. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    29 Mar 2011
    Link to this post
    Hi Brad,

    Currently Sitefinity supports this type of restriction but I will log it in our system as a wanted feature so our teams can plan it for near future.

    Greetings,
    Victor Velev
    the Telerik team
9 posts, 0 answered