We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8425
    • 159 Posts
    Hello,
    I’m using MaxiGallery (great snippet btw!) as follow:
    - Document Photo has the following snippet
    [!MaxiGallery? &childgalleries_ids=`all` &display=`childgalleries`  &order_by=`id` &pics_per_row=`6` !]

    - For each child gallery I’ve created a sub-document to Photo with the following snippet call:
     [!MaxiGallery? &display=`embedded` &embedtype=`lightboxv2`  &max_pic_size=`500*450` &thumb_use_dropshadow=`1` &max_thumb_size=`120*90` &manager_webusers=`[[GetUser]]` &admin_webusers=`[[GetUser]]` &order_by=`title`!] 

    - The snippet GetUser simply returns "$modx->getLoginUserName();"
    - I’d like to set permissions for photo gallery so users can only edit and delete photos they add in themselves.
    Is this possible?
    From what I understand users logged from backend will be able to edit all pic and when webuser goes to the picture management, he/she only be able to edit his/hers own picture in that gallery.
    However using the snippet above doesn’t give me this behaviour? What am I missing?
    Thanks in advance.

      • 7923
      • 4,213 Posts
      See the parameters in maxigallery wiki page:

      &admin_webusers
      Web usernames that have admin user privileges and who are allowed to manage all pictures in the gallery.

      &manager_webusers
      Comma delimited web user names that can post pictures to this gallery and can manage their own pictures.

      You have both in your snippet call.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 8425
        • 159 Posts
        Thanks Doze for the great snippet, everything works like a charm now. I should have spent more time reading the wiki sad