Item Page Prev/Next Buttons & Repeaters

I was wondering, if we still need a Table if we’re using a Repeater in order to make Previous and Next Buttons on a Dynamic Item Page? Or rather, can the code from the tutorial be modified to suit a Repeater instead of needed that extra page with a table?

Thought I’d ask here before running in circles to see if I could figure it out myself.
Cheers!

Hi,

You can definitely use repeaters for that.
The thing is that most of the time, the index page will look like a table or gallery.
But, we will consider adding an example with repeaters.

Liran.

Hello,

To remove the need for an index page:

  1. Add an additional, normal dataset to the Dynamic Item page and connect it to your collection
  2. Read the collection data once the dynamic page loads
  3. Save it to the user’s session storage.

Hey Ido, thanks for your reply.

I’m not positive on how to achieve step 2 & 3.
Am I close? Also, to clarify, this works with the existing Dynamic Item page code from the other tutorial?

import {session} from 'wix-storage';

$w.onReady( () => {
session.getItem('Video-Library')

session.setItem('Video-Library')
});

Hey Liran, that would be very helpful. For coding amateurs, like myself, just figuring out API references is difficult. Thanks!