-
Hello everyone, Suppose that we have a school staff management system. We have teachers, principal and classes. Principal can only create classes that start within a time span. When a teacher is assigned to that class, the teacher gets a notification (vial email or something else) where the teacher can approve the class or reject it, in both cases the principal receives a notification.
I created this scenario just so that I can learn on how to extend the functionalities of the framework and they are purely fictional, so even if it does not make sense, this is just for educational purpose. From what I have read, workflows can help in this use case, but is there any other preferred way or any other way in general. Also a nice feature would be to come out of the box, commenting like in Drupal with their Comments Module. Edit 1: Edit 2: Edit 3: I apologize in advance if this is the wrong place to ask these questions. Best regards. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I remembered Comments was in Orchard CMS previously, it's good to bring it back, especially in |
Beta Was this translation helpful? Give feedback.
-
1/3. The basic answers to your questions 1 and 3 are "do a SQL query of the corresponding content items/entities to check". Since we're talking about a very specific use-case that Orchard doesn't support out of the box (since it's not a school management system) the approach here would be to model your data, and then query and interact with it. See the tutorials for the basics of data management and content CRUD that are relevant here. |
Beta Was this translation helpful? Give feedback.
1/3. The basic answers to your questions 1 and 3 are "do a SQL query of the corresponding content items/entities to check". Since we're talking about a very specific use-case that Orchard doesn't support out of the box (since it's not a school management system) the approach here would be to model your data, and then query and interact with it. See the tutorials for the basics of data management and content CRUD that are relevant here.
2. There's more than one way, but I'd perhaps create a content part to manage this (assuming you store classes in content items), with a property storing the approval state, and permissions to let only the principal approve or deny. You can send e-mails with
…