How to create a page variable as a list of records?

I am trying to create a custom page variable to use in a repeater list for comments. My array need to look like this

-id
– userId
–avatar
–comment
–date

-id
– userId
–avatar
–comment
–date

-id
– userId
–avatar
–comment
–date

(repeated just like an array returned from firebase collection of records)

What type of page variable would this be? I see no option to create an array. Would it be a list of objects with four properties?

you can make it like this

and it will repeat? How would I map a data variable to this?

yeah, because you choose a list of objects, you can use functions to add objects to that list

As for this

if you mean, how to set data to that list, you can just set the page variable, from your data variable(coming from your backend)

1 Like