We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 74
    • 74 Posts
    It`s possible to get images for 2 or more galleries from 1 images folder on server?

      • 7923
      • 4,213 Posts
      Not really.. what are you specifically trying to do?

      You know that with gal_query_ids parameter you can retrieve images from multiple galleries to a single document / call..?


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 74
        • 74 Posts
        I making a site with 3 language versions.
        One DB.
        3 language trees,
        with gallery in each one.
        These 3 galleries must content the same pictures.

        So i want get these pictures from 1 folder to 3 galleries in different language versions.

        Sorry about my English. ;(
          • 7923
          • 4,213 Posts
          You can create just single (hidden) gallery document where you upload images. Then in the real (three) gallery documents, use &view_gallery=`document_id_of_the_hidden_gallery_document`.

          With that you have the same gallery in each of the three documents and if you click manage picture in any of the three gallery documents, it will go to that hidden gallery document to manage that gallery.

          If you need picture titles and descriptions multilanguage too, you can use the &customField parameter (in v0.6 test version) to create custom fields to hold the titles and descriptions in other documents.

          Then create custom templates for each of the three calls and replace the [+maxigallery.picture.title+] and [+maxigallery.picture.descr+] placeholders with the customFields for that language.. (or you can create just one set of custom templates and use PHx condition to check the value of [+maxigallery.config.lang+] and render the title / description placeholder based on that).


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 74
            • 74 Posts
            Doze, you`re genius!
            Custom fields for multilang support looks like the best solution.
            Thanks for great snippet grin