Repeater Buttons Linking to different lightboxes

Hi! Thanks for your answers!

I’ve tried it before, but it doesn’t work…

If I create the box inside the repeater the content connect to the dataset perfectly, but I don’t have enough space for everything I want to add as the repeater box is small and I can’t make the content box bigger than the repeater.
If I create the box outside the repeater, I have all the space I want, and I can link to it from the buttons without any problem, but I cant make it show the proper information, it only shows the first item on my dataset on each of teh buttons.

And with the lightbox, i’m not sure if i’m doing it right, I don’t have a special field on my dataset for lightbox but all of them have the same name as the “title” field.
I can’t add teh link to my page, the comment isn’t published…
lets try like this…
urvan cow . co . uk / copy-of-menu-1

And the codes for each:

This is repeated on the 3 pages:
import { local } from ‘wix-storage’ ;
import wixData from ‘wix-data’ ;
import wixWindow from ‘wix-window’ ;

$w.onReady(() => {
$w( ‘#dataset1’ ).onReady(() => {
$w( ‘#bsides’ ).onClick(() => {
let category = $w( “#bsides” ).label
$w( “#dataset1” ).setFilter(wixData.filter()
.eq( ‘category’ , category))
});
$w( ‘#bmains’ ).onClick(() => {
let category1 = $w( “#bmains” ).label
$w( “#dataset1” ).setFilter(wixData.filter()
.eq( ‘category’ , category1))
});
$w( “#bdrinks” ).onClick(() => {
let category3 = $w( “#bdrinks” ).label
$w( “#dataset1” ).setFilter(wixData.filter()
.eq( ‘category’ , category3))
})
});
});
export function bmains_click(event) {
$w( ‘#lmains’ ).show( ‘Reveal’ );
$w( ‘#lsides’ ).hide();
$w( ‘#ldrinks’ ).hide();
$w( ‘#text142’ ).show();
}

export function bsides_click(event) {
$w( ‘#lmains’ ).hide();
$w( ‘#lsides’ ).show( ‘Reveal’ );
$w( ‘#ldrinks’ ).hide();
$w( ‘#text142’ ).hide();
}
export function bdrinks_click(event) {
$w( ‘#lmains’ ).hide();
$w( ‘#ldrinks’ ).show( ‘Reveal’ );
$w( ‘#lsides’ ).hide();
$w( ‘#text142’ ).hide();
}

On the Lightbox one I have this other code below:
I’m not sure where o if I need to change soemthing to say “title” as this is teh field where I have the name of teh lightboxes.

export function button12_click(event,$item) {
let MyLightBox = $item( ‘#dataset1’ ).getCurrentItem().MyLightBox
wixWindow.openLightbox(MyLightBox)
}

On the box1:
export function button12_click_1(event,$item) {
if ( $item( “#box1” ).collapsed ) {
$item( “#box1” ).expand();
$item( “#button12” ).label = “-”
} else {
$item( “#box1” ).collapse();
$item( “#button12” ).label = “+”
}
}
export function button13_click(event,$item) {
if ( $item( “#box1” ).collapsed ) {
$item( “#box1” ).expand();
} else {
$item( “#box1” ).collapse();
}
}

On teh Box 2
export function button13_click(event,$item) {
if ( $item( “#box1” ).collapsed ) {
$item( “#box1” ).expand();
} else {
$item( “#box1” ).collapse();
}
}