Hello.
I’m trying to show content within a Repeat Region. I created the tables “whats_included” and “whats_included_contents” and in the table “whats_included_contents” I have the field “whats_included_id” to link the contents.
I was able to do a repeat to show the section titles. Now I need to show the contents related to these sections.
Is there any tutorial that shows how REPEAT and REPEAT CHILDREN work?
Hi.
You can use 2 col structure in your repeat to get that design.
I see that you already have col-md-4 and col-md-8 classes applied, is it not working?
You can try adding row class to the parent div where repeat is defined.
Or maybe you are using self-repeat instead of a repeat children. I would recommend to use repeat children instead.
Hello, @sid . The design is already in two columns as the first image I posted. What I can’t do is show the contents according to the Flights section, accommodations, etc… I’ve never used repeat children. Please give me a tip on how to structure this. I’m migrating my sites to Wappler and started with this one.
Pleasae check this tutorial: https://docs.wappler.io/t/nested-repeat-regions/5165 it shows how to nest two repeats inside, in cases like yours.
Just adjust it per your layout, as the one shown in the tutorial is quite basic.
Hello, @Teodor.
It worked out. I followed the tutorial but would like to know the difference between Repeat and Repeat Children.
Obs.: I can replicate this example whenever I have a FATHER table and a CHILD table, right?!
Thank you very much.
Yes you can use this with any parent > child relationship like that.
And of course as their names explain - repeat children repeats the child elements in a parent > child structure while repeat repeats the element it’s applied to.