We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36225
    • 20 Posts
    Hi all,

    I would like to allow a given usergroup to edit resources and their tv for a while, and then make these still visible but read only (not editable at all).

    I tried playing around with Context Access Policies and Resource Access Policies, disabling edit_document/save_document (in a duplicate of Content Editor) or disabling save/copy/... (in a duplicate of Resource).

    As mentioned in another post, nothing gives the aimed result.
    For ex. one config is:
    Content Editor AP
    edit_document: yes
    save_document: no
    Resource AP: original

    Result: resource and tv are visible and editable, but the Save button is not available.


    Another try is disabling permissions in the Resource AP: we get a read only resource, but the only visible tabs are General, Changes and Cache output, whereas I would like to see the content of the TV tabs (created with Form customization).

    Can someone help with a working (and tested) ACL config or any other tip, please? Thanks a lot.
      • 3749
      • 24,544 Posts
      I don’t think this is possible at present, but it’s a great feature request. A "read-only" form customization rule would be really handy.

      You could write a plugin that would prevent the user from saving the resource if certain TVs are changed, but that’s not a very satisfactory solution.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 36225
        • 20 Posts
        Thanks for this info. I’ve posted a feature request.
        http://bugs.modx.com/issues/5511

        PS: In one of my several attempts with ACL, it seems that I could disable the Save button, but the user can still edit the tv fields. I agree with you, it is not a really clean solution.