Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Restriction to create pages and posts by 'administrator' on Multisite?

UserPost

8:02 am
September 30, 2011


vbk

New Member

posts 1

1

I use the plugin on a Multisite Installation.

I want to disable any one including the sub-site administrators to 'Create New' pages and posts except the default 'sample page' . They would able to edit the pages created already, but should n't able to create pages and posts

Can you please show mw a way to configure the roles and capabilities to acheive that? I have went trough the options. But even if I disable the capability for other roles, I can't able to configure the 'Administrator' role to do so. As administrator have all previliges(for sub-sites created currently and the sites which can be created in future). There is no possibility to set a restriction to administrators on sub-sites created automatically


Does anybody have Idea about this?


Thank you!


10:18 pm
October 4, 2011


Kevin

Admin

posts 2503

2

This is not strictly supported functionality, but I'll give you an idea how to get at least part way there.

You'll need to add this to wp-config.php:

define( 'SCOPER_CONTENT_ADMIN_CAP', 'administer_content' );

…and create a new role "Super Administrator" that has that capability in it.

Then remove the 'edit_posts' and 'edit_pages' capability from all role definitions except Super Administrator. Finally, assign propagating Category Roles and Page Roles to all role groups, for all categories and pages.

I'm not offering any new multisite config automation for this right now.


About the Agapetry forum

Currently Online:

14 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1249

Posts: 5659

Members:

There are 1261 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin