We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 52271
    • 18 Posts
    The footer section of my site has content that repeats across all pages.
    I have set it up as a chunk and given content editors permissions to edit and save it.
    But I want to hide the top section of the chunk edit screen ie the Name, Description, Category and the 3 tick boxes, from the editors because I don't want them messing with these settings.
    Also I'd like to hide the Properties tab.

    What is the best way to do this?
      • 4172
      • 5,888 Posts
      maybe, you could use https://rtfm.modx.com/extras/revo/clientconfig for that
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 52271
        • 18 Posts
        Thanks, I'll take a look at that.
          • 52271
          • 18 Posts
          I could be wrong but I don't think this is the solution for me. It appears to let you add settings for the user, but not take them away.
            • 47079
            • 3 Posts
            Maybe create a page behind a login, and add something like this:

            <textarea name="chunkvalue">
            [[+chunkvalue]]
            </textarea>



            and get and set the chunk like this:
            $chunk = $modx->getObject('modChunk', array('name' => $chunk_name)); 
            $chunkvalue = $_POST['chunkvalue'];
            $chunk->set('snippet', $chunkvalue); 


            Haven't tested this, and not sure if it's a good solution for you - but trying to be creative smiley
            • I use TVs for this sort of thing, and sometimes a resource itself, then use getField or fastField to display the value.

              In one case, where the footer has four columns of content, I have a "footer" resource with its own template to control the four blocks of TVs, and everything else hidden using Form Customization.

              For the display of the footer, I use the FastField tags such as [[#211.tv.footerLogo]], and in the case of the illustrated links MIGX TV, a getImageList snippet:
                     <!-- Link List -->
                      <div class="col-md-3 md-margin-bottom-40">
                        <div class="headline"><h2 class="heading-sm">Useful Links</h2></div>
                        <ul class="list-unstyled link-list">
                          [[getImageList?
                            &tvname=`footerLinks`
                            &docid=`211`
                            &tpl=`footerLinksTpl`
                          ]]
                        </ul>
                      </div><!-- End Link List -->


              [ed. note: sottwell last edited this post 7 years, 11 months ago.]
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 4172
                • 5,888 Posts
                you can create a textarea-clientConfig for your user instaed of a chunk and don't let him edit Chunks at all.
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 52271
                  • 18 Posts
                  Thanks to all for your suggestions, I will look into them. For the time being, I've altered the css to hide unwanted sections.
                  • Did you create a new duplicate Manager theme, modify that new theme's CSS, then switch to that theme in the System Settings? If you just edited the existing default Manager theme, it'll be overridden with the default every time you upgrade MODX.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 52271
                      • 18 Posts
                      Ah, good thought, I'll do that. Thanks smiley