We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33271
    • 84 Posts
    Hello.
    Can you help me?

    1) I’ve created a plugin "ManagerManager" (v.0.3.2):


    // ManagerManager plugin v0.3.2
    // Description: <strong>0.3.2</strong> Manage the ModX Manager

    ...

    // You don’t need to change anything else from here onwards
    //-------------------------------------------------------
    // Run the main code
    $asset_path = $modx->config[’base_path’] . ’assets/plugins/managermanager/mm.inc.php’;
    include($asset_path);

    Also, I have checked:
    [X] OnDocFormPrerender
    [X] OnDocFormRender
    [X] OnPluginFormRender
    [X] OnTVFormRender


    2) I’ve created a chunk "mm_rules":


    // MM rules can go in here, instead of a chunk
    // If you copy them to a chunk, don’t include the opening and closing PHP tags

    // ------------------------ INSERT YOUR RULES HERE --------------------
    // These are example rules -- replace them with your own
    // PHP *is* allowed

    // News editors role -- creating a variable makes it easier to manage if this changes in the future
    $news_role = ’3’;

    mm_hideFields

    ..................

    // For everyone except administrators
    mm_hideFields(’link_attributes’, ’!1’);
    //mm_moveFieldsToTab(’tvcolour’, ’general’);


    // ------------------------ END OF RULES --------------------


    If I correctly understand, should there will be buttons for editing. But I don’t see any changes in the administration panel. huh
    I don’t know what I do not correctly.

    MODx v.0.9.6.2
      • 21056
      • 327 Posts
      The demo content affects role 3, template 10, a template variable called "colour", etc

      You need to edit the mm_rules chunk as appropriate for your installation, with the appropriate role, template and TV values for the changes you wish to make.
        Author: ManagerManager plugin - customise your ModX manager interface

        Rckt - web development, Sheffield, UK
        • 33271
        • 84 Posts
        Thank you very much. Has started to understand smiley
          • 33271
          • 84 Posts
          I have one more question. Could you help me? smiley

          I have understood like to work with fields for all documents. Thank you.
          But I don’t know how to change fields only for the document "DB apartments (5)" and for the documents enclosed in it (A-1, A-2 and other). embarrassed