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

    is it possible to display the "Manage pictures" button only for the author of the doc?
    I’m using FDM with MaxiGallery and want to give only the author of a document the rights to upload/manage images for that doc.

    Any ideas?

    See’ya
    Rohal.
      • 7923
      • 4,213 Posts
      It should be like that by default. Or are you talking about webusers?

      For MODx manager users, the permissions should be so that if the user has rights to edit the document, he can also manage the pictures in the related gallery. Administrators can manage all galleries.

      For web users, you have make use of one of the following parameters: &admin_webusers &admin_webgroups &manager_webusers &manager_webgroups

      See more info about those from maxigallery wiki page.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 16903
        • 39 Posts
        Yes, i’m talking about web users.
        I tried the parameters &admin_webusers and &admin_webgroups but don’t understand how to use them so that a author can manage only the images on his documents.

        At the moment my template call looks like that:
        [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1` &disable_rightclick=`0` &upload_field_count=`3` &admin_webusers=`Bernd` !]


        Hm. The param &admin_webusers must contain the author of the actual doc?! How can i fetch the author of the doc?

        See’ya
        Rohal.
          • 7923
          • 4,213 Posts
          You need to implement it so, that when FDM creates the document, it inserts the maxigallery call to the document where &admin_webusers parameter is filled with the current logged in web user.

          See this http://modxcms.com/forums/index.php/topic,12367.0.html


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 16903
            • 39 Posts
            Thanks for your help!
            I solved it by inserting the author of the document into the MaxiGallery call.

            See’ya
            Rohal.