• ManagerManager for Revo - Hide templates#

  • insightdesign Reply #1, 1 year ago

    Reply
    Holy Jeesters guys. I am confused as all hell. I am trying to hide certain templates in the 'Uses Template' drop-down menu from certain manager users in Revo 2.0.8-pl.

    I know that ManagerManager was able to do this quite simply in previous releases of MODx but I am having a heck of a time finding the solution for Revo. I have played around with 'Form Customization' but to no avail. All I need is a tutorial or a step-by-step. Anyone know of anything like that anywhere?




    Here are some resources I have found so far just in case it would come in handy for someone else who knows what they're doing: Bob's Guides - http://bobsguides.com/revolution-permissions.html Topic: Revo most complicated permissions system - http://modxcms.com/forums/index.php/topic,62298.0.html Topic: MODx Revolution's Cheatsheets - http://modxcms.com/forums/index.php/topic,48252.0.html


  • BobRay Reply #2, 1 year ago

    Reply
    Form Customization will let you hide that field completely or set its default value, but it won't let you control which templates are shown.

    I won't promise that this will work, but I think it's supposed to.

    Put the templates you want to hide into a category.

    Then go to Security -> Access Controls -> User Groups tab.

    Right-click on the Administrator group and select update.

    On the Element Category Access tab, create a new ACL entry specifying that category, a context of 'mgr,' a minimum role of admin Super User, and a policy of 'element.'

    Save.

    Flush Permissions

    Flush All Sessions


    That should protect those templates (assuming that either your other users are not all admin super users or they are not members of the Administrator group).

    That will hide the templates in the tree, but I don't know if hiding them in the drop-down is implemented yet. You may have to wait for 2.1.0-pl, I'm pretty sure it works there.

    As a last resort, I think it would be possible to hide the template drop-down completely with Form Customization, create a TV that would show the selected templates as a drop-down list, and write a plugin that would set the template from the TV value when you save the resource.


  • fouk Reply #3, 10 months, 3 weeks ago

    Reply
    Quote from: BobRay at May 18, 2011, 11:56 PM


    Put the templates you want to hide into a category.

    Then go to Security -> Access Controls -> User Groups tab.

    Right-click on the Administrator group and select update.

    On the Element Category Access tab, create a new ACL entry specifying that category, a context of 'mgr,' a minimum role of admin Super User, and a policy of 'element.'

    Save.

    Flush Permissions

    Flush All Sessions


    This successfully hides the templates from the 'Uses Template' drop-down menu, but it also hides the Template Variables, so their values can only be edited from the super user ... which is not so good




  • insightdesign Reply #4, 10 months, 3 weeks ago

    Reply
    Hey guys

    Thanks for your help. I have put permissions on the back burner for now. Thankfully, it's not required for Go-Live!

    Bobray..I'll have another go and follow your instructions.

    Fouk..If this is true, then I definitely need another method :S


  • BobRay Reply #5, 10 months, 3 weeks ago

    Reply
    That sounds like a bug. Could you report that using the Bugs and Requests link at the top of this page?

    In the meantime, you may be able to put the template variables in a separate category and give the users access to them with another Element Category Access ACL entry.