Hi
Please check: better if teachers and students from different User groups, so you not have so many users in add forms. And in show parent-child you may show only 1 teacher and all students.
And you will not have so mix in child-parent layout.
also please check: child-parent - when you show for some parent all same child. Teachear and his students, Student and his subjects, client and his order...
For show structure like you need. You no need uses child-parent layout.
In
Website Builder you need create:
1. Entity -> Person (You have it) with all fields for describe person.
2. in "add layout" for person with all fields for person details you need add "Attach Child Enteties" - the "Entity -> Person" ,
You need add it (Entity -> Person) as example as on your image, you add 5 Teachers and 10 students.
So you will can to every person connect till 5 teachers and till 10 students. This is you also have now.
3. You need create "Show Layout for person".
There you exactly as at step2 add "Attach Child Entities", 5 Teachers, and 10 students as on your image.
we in our Website builder show only fields which you fill, so if you show 2 teacher(not 5), we will show only 2 teachers, exactly for students
Some like this we do for create
family tree website template
Regards
OrdaSoft team