Jump to content

Restrict pagelist to several branches for specific role


Zeka
 Share

Recommended Posts

@Zeka - that's correct - it is only for one branch. To restrict to more than one is a more complex task. Here are a couple of gists that will get you going:

https://gist.github.com/adrianbj/e391e2e343c5620d0720

https://gist.github.com/adrianbj/6fd1b770d9ce7a7252b6 

Remember there are lots of things that AdminRestrictBranch takes cares of that you will need to consider like adjusting breadcrumbs, admin search results, the Pages > Tree menu, etc if you choose to start with one of these gists.

The biggest issue with the "HideUneditablePages" gist module is if an editable page has an uneditable parent - how should that be handled?

Anyway, hope one of them gets you going. 

This is the thread that led to those gist modules:

 

 

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...