See links below.
On my site, a user can click a card to go to that card’s page.
Clicking the card Echolocation will go to the Echolocation Card page. On the bottom of the card’s art there is a button to view alternative art, which opens a lightbox modal. The button itself is a lightbox link, and all of the images that show in the lightbox are connected via lightbox grouping (each image is a different field within the Card CMS object). This is working properly as expected.
I’ve been tasked with replicating that functionality on the homepage, such that each card with alternate art will display a button that, when clicked, will open the same lightbox view as is viewable on an individual card’s page.
I’ve implemented a button with a palette icon to serve this function, and it properly appears on cards with alternate art.
However, upon clicking the button, the resulting lightbox modal shows ALL alternate arts for all cards that have loaded on the homepage. This is incorrect–the desired behavior is to have ONLY the alternate art for an individual card show when user clicks the alt art button for that card.
I assume this is due to how lightbox groups work. AFAIK each alternate art that exists across cards is being grouped together, but I don’t see a way to have a lightbox group that functions within a single collection item (card), or that can be generated dynamically based on a particular collection item (card).
I tested out using a multi-image field, uploading each alternate art file in the multi-image field, referencing it within a new collection list inside the card item, and adding a lightbox to it, but it seemed to have the same problem w/ lightbox grouping (and made a button appear for each alt art, rather than the desired single button to open the lightbox modal).
I’d appreciate any insight or potential fixes.
Thanks!
Read-Only link: Webflow - DOOMLINGS Compendium
Published Link: https://doomlings-compendium.webflow.io/