-
- 197 Posts
Hi can someone please help me display 2 galleries on 1 page. I have this as my page code at the moment:
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" align="center" valign="middle">[[!Gallery? &album=`1` &toPlaceholder=`gallery1`]]
[[!GalleryItem]]
[[!GalleryAlbums? &toPlaceholder=`galleries`]]
<h2>Item</h2>
[[!+galitem.image:notempty=`
<div class="image">
<img class="[[+galitem.imgCls]]" src="[[+galitem.image]]" alt="[[+galitem.name]]" />
<br />Albums: [[+galitem.albums]]
<br />
</div>
`]]
<hr />
[[!+gallery:notempty=`
<h1>[[+gallery.name]]</h1>
[[+gallery]]
`]]</td>
<td width="50%" align="center" valign="middle">[[!Gallery? &album=`2` &toPlaceholder=`gallery2`]]
[[!GalleryItem]]
[[!GalleryAlbums? &toPlaceholder=`galleries`]]
<h2>Item</h2>
[[!+galitem.image:notempty=`
<div class="image">
<img class="[[+galitem.imgCls]]" src="[[+galitem.image]]" alt="[[+galitem.name]]" />
<br />Albums: [[+galitem.albums]]
<br />
</div>
`]]
<hr />
[[!+gallery:notempty=`
<h1>[[+gallery.name]]</h1>
[[+gallery]]
`]]</td>
</tr>
</table>
If someone can help me to get it to work so I have a table with two columns and a gallery in each that would be fantastic. Thanks for any help.
-
- 197 Posts
Hi just bumping this up a bit if anyone can please help? Thanks.
The easiest way to do this is using an iframe.
You can also try using a unique placeholders for each gallery, gallery item and gallery album. Make sure you use a custom tpl as well so they don't have the same placeholders that's what I think is giving you issues.
You have the same galitem properties for both galleries.
-
- 197 Posts
Hi can anyone please give an example of how my code in the second column of the table should be different from the first row and also how to call specific galleries?
Thanks