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

    I want to have a gallery that is the same on every page, so i have included a maxigallery call in my main templates. However, the gallery is only shown on the homepage, any ideas why?

    or to put it another way how do I create a gallery in one place and then re-use.

    G
      • 7923
      • 4,213 Posts
      Even if you put the maxigallery call into your template, it uses the document id of each page. You can use the view_gallery parameter to view a gallery from some other document. So you would do the gallery for example in document id 59 and then use [[MaxiGallery? &view_gallery=`59`]] in the template to show that gallery on each page.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 10357
        • 573 Posts
        ah ok, thank you grin
          • 10357
          • 573 Posts
          one small problem with this method is that the javascript does not get written into the main template. is there a way round this?
            • 7923
            • 4,213 Posts
            just use the same parameters that the gallery uses.. basicly copy that call and add that view_gallery parameter


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 10357
              • 573 Posts
              thank you grin