Display a list of images

hello, bubblers
I have a issue about display some photos with repeating group.
I want to display some photos from the List of images in the database on a page, how can I do that? The way I tried it was with a repeating group, but it only displayed one photo.

Hello @shota

  • Create a data-type with field type image
  • Create a few entries in the dB
  • Set the repeating group to search for that data type
  • Add an image visual element to the row of the RG and set it to current cells thing image value
  • Preview your app

スクリーンショット 2020-12-01 13.55.22 スクリーンショット 2020-12-01 13.55.37

スクリーンショット 2020-12-01 13.56.44
I’ve done this, but it doesn’t work

Are there actually any photos stored in the database?

Try this:

image

This is because you set pics to be a list. The above expresion will show the first uploaded pic.

If it were a single pic field then current cells photo’s pic would do.

thank you for your advice.
There are three photos in the database and I want to display all of them to the repeating group.
how can I do that?

Sure no problem :smiley:

Please follow these precise suggestions:

  • Datatype with one image field

image

  • Create several entries in the dB

  • Setup the RG


  • Preview your page

The RG is not styled that is why you only see the four pics and no lines.

Hope this is clear now :+1:

1 Like

thank you for the answer but I’d like to use “list of images” in RG

スクリーンショット 2020-12-02 0.52.34

I see. I guess you want to show the several pics within a cell of a photo. If so then you can achieve this using a nested repeating group inside the main repeating group.

Best of luck with your app :+1:

2 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.