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

    I use the [!MaxiGallery? &gal_query_ids=`all` &order_by=`random` &limit=`5`!] command for display some random pictures of all galleries.

    Is to possible to display the name of the corresponding gallery under the picture?

    Thanks for help
    Yves
      • 7923
      • 4,213 Posts
      You mean the page title of the gallery page? You can create a custom galleryPictureTpl and use getfield snippet in it, like so:

      [[getField? &field=`pagetitle` &docid=`[+maxigallery.picture.gal_id+]`]]


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 10389
        • 11 Posts
        thanks a lot

        that exactly what I’m looking for.

        Great work, whole maxigallery stuff!