Dear Modx users and developers!
I’d like to answer the question above with MODx, and i haven’t figured out how to do this yet. My goal is to make a "frame", where simple managers (not the admin) can edit some TV’s of a document (let it be a container), but aren’t able to modify (or even see) them in the inherited pages’ settings.
I’ve tried to solve this problem by using the Resource group + User group + Roles trio, and works fine, but there is a problem: A manager can modify the values of TVs in a container’s setup page, and all the values will be inheriting to the childs, but after that a manager is unable to see the child pages’ settings in the manager, because i prevented them to reach those pages by unchecking their box at the site’s access permission section.
I’ve tried it with ManagerManager, without success:
I. mm_hideFields(’tv7’, ’2’); // Hide the template variable "tv7" for users with role "2"
Not an option, because if i hide a variable from a user with an exact role, it wouldn’t be able to reach this in the container ("frame") too.
II. mm_hideFields(’alias’, ’1’, ’3’);
// Hide the alias field for users with role "1" editing documents using template ID "3"
Would be better, just unfortunately the container and the inherited resources are using the same template, that’s why the same ID. So i could get the same by using the option I.
The solution would be preventing the manager to reach the TV’s on resources with an exact site ID, but i haven’t found the best way to accomplish this yet, and i can only hope there is a way to do this somehow.
Thank you in advance, and sry for my english!