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

    Is it possible to hide the Create or Edit button for certain documents in the quickmanager?

    In managermanager i would type something lik: mm_HideCreateButton(’12,18,22’ ’!1’) // hides the create button for docs with Id 12,18 and 22, for all users excepts admin

    Would be very nice, because sometimes users need change a document, but instead they create a new doc. And then wayfinder adds it to the menu and everything starts to be a mess...

    Thanks for any advice.
      • 23324
      • 40 Posts
      I found a way to do this.

      You can hardcode the qm.inc.php file

      on line 138 i added
      " if($docID == ’12’ or $docID== ’18’ or $docID== ’22’){

      $addButton=’
      etc
      etc

      }

      But maybe there is a better/easier to maintain solution?
        • 16610
        • 634 Posts
        QuickManager+ follows document/resource user permissions to hide edit -button.

        More info at "assets/qm"readme.html" or here.

          Mikko Lammi, Owner at Maagit