We’re working on a grading system in Kirby. On a student’s pane user page, a teacher needs to be see what a student (i.e. user) has submitted, but only the submissions that fall under the course to which the teacher is assigned.
For example, a student submits homework for courses 1, 2, and 3. teacher 1 has taught course 1 but teacher 2 has taught courses 2 and 3. We’d like teacher 1 to be able to grade any of the student’s submitted assignments for course 1 and teacher 2 to grade anything from course 2 or 3.
This data is currently stored in a structure field in the student’s user.txt file. When a teacher looks at the submissions, they should only see submissions that came from course 1. Right now they see all the submissions in the structure field.
The question: Can I query a structure field to only return entries with a certain field value, e.g. when the course name is one that the teacher is assigned to. Is it possible to make my own version of a structure field?