Quote from: kctechsoln at Aug 11, 2015, 08:18 AMApologies jonahnaylor, there was a typo in my last comment... missing a couple of "=", so it wouldn't have quite worked correctly.
[[+idx:eq=`1`:or:eq=`[[+total]]`:then=`i`:else=`b`]]
Regarding trying to make the middle templates have 2 images I doubt if that's possible. The thumbTpl is per individual image.
Hi thanks a lot.
For some reason though now I've updated to the new if/else statement I'm getting this output:
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F1.jpg" width="76" height="100" class="page-0" />
<span></span>
</li>
<li class="i">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F3.jpg" width="76" height="100" class="page-1" />
<span></span>
</li>
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F2.jpg" width="76" height="100" class="page-2" />
<span></span>
</li>
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F4.jpg" width="76" height="100" class="page-3" />
<span></span>
</li>
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F5.jpg" width="76" height="100" class="page-4" />
<span></span>
</li>
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F6.jpg" width="76" height="100" class="page-5" />
<span></span>
</li>
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F8.jpg" width="76" height="100" class="page-6" />
<span></span>
</li>
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F9.jpg" width="76" height="100" class="page-7" />
<span></span>
</li>
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F7.jpg" width="76" height="100" class="page-8" />
<span></span>
</li>
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F11.jpg" width="76" height="100" class="page-9" />
<span></span>
</li>
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F10.jpg" width="76" height="100" class="page-10" />
<span></span>
</li>
<li class="b">
<img src="/assets/components/gallery/connector.php?action=web/phpthumb&ctx=web&w=76&h=100&zc=1&far=C&q=90&src=%2Fassets%2Fgallery%2F1%2F12.jpg" width="76" height="100" class="page-11" />
<span></span>
</li>
but it should be i,d,d,d,d,d,d,i etc?
As for putting two images in, would this be possibly with some kind of extra snippet or another if/else? I realise normally Gallery only outputs one at a time though...