We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24495
    • 407 Posts
    Is it possible to hide templates depending on manager role? I have many templates in a web site using as administrator and wish to assign a subset of these templates to editors. They should not use some "global" templates to assign them to their documents.
      • 33337
      • 3,975 Posts
      I would be interested to know the same. wink
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 24495
        • 407 Posts
        I think I found the solution in the MM documentation (read first, then ask  rolleyes ):
        mm_hideTemplates($tplIds, $roles, $templates)
        Hides specified templates from the Templates drop down list
        Example: mm_hideTemplates('0,4', '1'); // Hide templates 0 and 4 from users with role "1"
        Will try this.

        EDIT: works fine.