I’m pulling movie data from the OMDb API using Bubble’s API connector. The API call is working—I can see the full JSON response in the API connector.
When I try to display the movies in a repeating group i managed to show the title and now that ehere things gets tricky for me, i need to pull the special id from the title i pulled via api, to bring the right poster (photo) for the movie card.
now i played with it and i worked for the first cell but the rest of the cells took the photo of the first one as well. (even if the title is different).
a friend told me to use “current cell” and then the value i need, but i cant find “current cell” in my opeerators.
any ideas where to start? im stuck on that part for 3days alreday and getting frustrated
I think your RG settings is wrong because you are using again the API data.
Let’s say you have nothing in your RG. if you add a text element in the first cell, you should be able to select Current cell’s OMDB SearchMovies’s title. You could add a group and set it to type “OMDB - Searchmovie” item and you will be able to also use Current cell…
Your RG data source, if you want to random the items order, is where you should placve the :random function. Not in the RG cell.
Once you will understand the RG use and the “Current cell” stuff, you will be able to access to any of your key including the ID of the “Current cell”. Consider that if you keep adding nested group, you may refer the nested group using the “parent group” (or you can use the First main group name instead)
For the details about movie, in the cell, you will be able to set a group of the API type “movie details” and set the Get data from API and use Current cell (or parent group) 's id