We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7231
    • 4,205 Posts
    Can MaxiGallery be setup to use the images dir to store the images rather than the galleries dir? I am working on a project where we are using MG to manage the images in order to attach data to each image. However we would also like to have the images available in the resource browser for use inline in the content. Can this be done?
      [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

      Something is happening here, but you don't know what it is.
      Do you, Mr. Jones? - [bob dylan]
      • 7231
      • 4,205 Posts
      I think I found my own answer, embarasingly it is the first item in the config of the snippet:
      // Path where the galleries will be stored (you have to create it and make it writeable!)
      $path_to_galleries="assets/galleries/"; // [ path ]

      So if I set $path_to_galleries="assets/images/"; it should work. Humm, I think I need to find a way to prevent users from renaming the dirs,
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 7923
        • 4,213 Posts
        Yes, that’s the correct parameter to configure it.


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."