Hi Everyone,
Okay, so here's my question. I have made a product catalog using the Gallery plugin for Modx. Works like a charm except for one thing, i can't seem to find any way to select which Gallery item should be first?
Here's the thing, i made one Album for multiple products. When clicking on lets say 'Product A - Type A' i want to display the Album with 'Product A - Type A' upfront. Now here is the deal, when i click on 'Product A - Type B' i obviously read out the same Gallery Album but than 'Product A - Type B' should be the first item in this gallery.
So i was thinking, maybe it is possible to make a TV on the product page to select which Gallery Item should be the first to display? Is anything like this possible?
My menu hierachy would be something like:
/ Product category (Product A)
- Productdetail page (Product A - Type A)
- Productdetail page (Product A - Type B)
- Productdetail page (Product A - Type C)
etc.
Thanks in advance!
Cheers,
Nick
Edit:
Just for your info, this is my code for now. As you can see i manually select another image who's being placed as first item in the JS slider. (Problem: I get duplicates)
<ul class="bjqs">
<li>
[[getResourceField? &id=`[[*id]]` &field=`product-firstimg` &processTV=`1`]]
<p class="bjqs-caption">[[*pagetitle]]</p>
</li>
[[!Gallery? &album=`[[*product-album]]` &imageWidth=`530` &imageHeight=`750` &thumbTpl=`ProductSlideTpl`]]
</ul>