I’m trying to do a mini IMDB.
I have films (title, hero image, youtube video, ect…) But I can’t get a list of cast and crew (name, role, bio, and photo) to work. I have the forms to add the content created, and a repeating group to view them, but I can only get the last one (in the list) to show.
Film
Title
Hero Image
Youtube video
{group
Cast/Crew name (list item)
Cast/Crew role (list item)
Cast/Crew bio (list item)
Cast/Crew photo (list item)
end of group}
First of all, you should restructure your database. From what I understand from your setup, you only have the “Film” table.
You should add a “Cast/Crew” table with the fields: name, role, bio, photo, etc. Then in the Film table, you should have a “List of Cast/Crew” field with the data type being the new “Cast/Crew” table you just created.
This may be a result of not having the database set up properly.
In the CastCrew data type I have Name, role, bio, etc…
Then on the page my repeating group Type of Content is set to “Films”. Then each cell’s content is set like “Current Page Films’s List of CastCrew’s CC_Photo”.
My repeating groups should be Cast/Crew member: Photo, Name, Role, and Bio.
I created the List of CastCrew field to be a LIST of CastCrew, thanks for that!
It’s still not working correctly. I do see when I add the data in my form it is added to the CastCrew data type. But getting them to display is still not working.
The repeating group’s data source is “Current Page Film’s List of CastCrew” So I’m wondering if my data isn’t associating cast and crew members with a film.