We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36446
    • 184 Posts
    Hi!
    I’m trying to use the GalleryItem snippet from revo to display a couple of images on a page. But unfortunately i can only use one snippet for each page. If i try to put my snippet call more then once on a page modx just displays the image from the second snippet call twice.

    My Page looks like this:
    [[!GalleryItem? &id=`8`]]
     
    [[!+galitem.image:notempty=`
    <div class="image">
      <a rel="colorbox" href="[[+galitem.image]]">
        <img style="width:250px;height:250px" src="[[+galitem.image]]" alt="[[+galitem.name]]" />
      </a>
      <br />Albums: [[+galitem.albums]]
      <br />Tags: [[+galitem.description]]
    </div>
    `]]
    [[!GalleryItem? &id=`9`]]
     
    [[!+galitem.image:notempty=`
    <div class="image">
      <a rel="colorbox" href="[[+galitem.image]]">
        <img style="width:250px;height:250px" src="[[+galitem.image]]" alt="[[+galitem.name]]" />
      </a>
      <br />Albums: [[+galitem.albums]]
      <br />Tags: [[+galitem.description]]
    </div>
    `]]


    what am i doing wrong??
      https://www.beautyislife-shop.de - premium make-up!
      https://www.topsterne.de - sell it here!
      ---------------------------------------------------------
      • 37449
      • 57 Posts
      Change the placeholder name on the 2nd call

      So, line 12 now becomes:
      [[!GalleryItem &id=`9` &toPlaceholdersPrefix=`second`]]
      


      and then change the 'galitem' references to 'second'

      HTH
        formerly sumodaz on here!