Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Couple of questions


Go to End


3 Posts   1278 Views

Avatar
cerelac

Community Member, 34 Posts

10 June 2008 at 1:38am

Edited: 10/06/2008 1:59am

Hello.

I would like to know if it's possible to hide the "Who can edit this inside the CMS" section from the "Access" tab.
My idea was to hide it from all users except for the Administrators ("full administrative rights" permission).

One more thing, is it possible to establish that a group only has access to a especific pagetype in the sitetree? (I think it's almost impossible).

Thank you in advance.

Avatar
Ingo

Forum Moderator, 801 Posts

20 June 2008 at 9:06am

for hiding the access tab, you could subclass CMSMain (e.g. with "MyCMSMain"), override getCMSFields and remove the field manually if necessary. to have your subclass of CMSMain used instead, you have to add the following director rule to your _config.php

Director::addRules(100, array(
	'admin/security/$Action/$ID/$OtherID' => 'SecurityAdmin',
	'admin/assets/$Action/$ID' => 'AssetAdmin',
	'admin/comments/$Action' => 'CommentAdmin',
	'admin/ImageEditor/$Action' => 'ImageEditor',
	'admin/$Action/$ID/$OtherID' => 'MyCMSMain',
));

i don't think you can easily filter the sitetree by pagetypes based on permissions.

Avatar
cerelac

Community Member, 34 Posts

26 June 2008 at 10:20pm

Thank you, Ingo.
I will give it a try.