We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37293
    • 8 Posts
    Hello all

    I have solved my problem. If anyone else is struggling then please check out my how to on my computer repair blog [ed. note: johncarter last edited this post 14 years, 6 months ago.]
      • 34120
      • 236 Posts
      Nice work John, thanks for sharing. I've been struggling with this.
        • 37143
        • 74 Posts
        Quote from: johncarter at Nov 11, 2011, 10:53 AM
        Hello all

        I have solved my problem. If anyone else is struggling then please check out my how to on my computer repair blog

        Hi John, I followed your example you posted, but i end up getting the same gallery returned in each instance of the Gallery Album display. Below is my GalleryAlbum template.

        <div class="gallery">
        <a href="[[+image]]&w=765&h=510&zc=1" title="View Full Gallery" class="gal-thumb fancybox" rel="gallery[[+id]]" ><img src="[[+image]]&w=174&h=119&zc=1" /></a>
        <p>[[+name]]</p>
        [[!Gallery? &album=`[[+id]]` &start=`1` &limit=`100` ]][[+gallery]]
        </div>

        for each Gallery Album output, the [[!Gallery? &album=`[[+id]]` seems to use the same gallery for all of them (the first one it finds in my sort order). I get confused with nested snippets sometimes, and I tried changing the cache on the snippet calls, but no luck. Can anyone tell me what I am doing wrong? Thanks in advance.


          • 37143
          • 74 Posts
          Quote from: [email protected] at Jan 08, 2013, 09:40 PM
          Quote from: johncarter at Nov 11, 2011, 10:53 AM
          Hello all

          I have solved my problem. If anyone else is struggling then please check out my how to on my computer repair blog

          Hi John, I followed your example you posted, but i end up getting the same gallery returned in each instance of the Gallery Album display. Below is my GalleryAlbum template.

          <div class="gallery">
          <a href="[[+image]]&w=765&h=510&zc=1" title="View Full Gallery" class="gal-thumb fancybox" rel="gallery[[+id]]"><img src="[[+image]]&w=174&h=119&zc=1"></a>
          <p>[[+name]]</p>
          [[!Gallery? &album=`[[+id]]` &start=`1` &limit=`100` ]][[+gallery]]
          </div>

          for each Gallery Album output, the [[!Gallery? &album=`[[+id]]` seems to use the same gallery for all of them (the first one it finds in my sort order). I get confused with nested snippets sometimes, and I tried changing the cache on the snippet calls, but no luck. Can anyone tell me what I am doing wrong? Thanks in advance.



          Hi, please ignore my prior post. Once I cleared the cache after 30 minutes, it finally worked! thanks for contributing!