Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Couple of questions

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

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

Page: 1
Go to End
Author Topic: 1000 Views
  • cerelac
    Avatar
    Community Member
    34 Posts

    Couple of questions Link to this post

    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.

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: Couple of questions Link to this post

    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.

  • cerelac
    Avatar
    Community Member
    34 Posts

    Re: Couple of questions Link to this post

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

    1000 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.