Hello,
I am using the opigno calendar for scheduling live class sessions, however I cannot associate them with specific teachers. What's the best way to enable this?
Best,
Ken
James Aparicio
jeu 24/07/2014 - 11:24
Hi kengrayfield,
Hi kengrayfield,
Can you please explain your use case a bit better please?
You want to create a calendar event just for one specific user? The teacher?
Right, I want to be able to add a new field to the calendar event content type that associates with teachers. The end goal is to be able to create events and assign them to corresponding teachers, and view classes (events) by teachers.
James Aparicio
ven 25/07/2014 - 16:03
Hi kengrayfield,
Hi kengrayfield,
The Opigno callendar works using a view. It gets all the nodes for content types that have a specific date field. If you look all the content types that create a calendar notification, they all have the same field (opigno_calendar_date) . Diferent content types share the same field but have different field instances (in Drupal terms). They show or not for specific users simply based on user access to that specific node (the node that has that field).
What you can do for that view is to check if the content type has that specific field you are adding, and if it does, filter the view further. In your case it seems the field would be a reference to course. You would get all the teachers in that course. If the current user is not one of them you do not show.
Hi kengrayfield,
Hi kengrayfield,
Can you please explain your use case a bit better please?
You want to create a calendar event just for one specific user? The teacher?
Best regards
En réponse à Hi kengrayfield, par James Aparicio
Right, I want to be able to
Hi kengrayfield,
Hi kengrayfield,
The Opigno callendar works using a view. It gets all the nodes for content types that have a specific date field. If you look all the content types that create a calendar notification, they all have the same field (opigno_calendar_date) . Diferent content types share the same field but have different field instances (in Drupal terms). They show or not for specific users simply based on user access to that specific node (the node that has that field).
What you can do for that view is to check if the content type has that specific field you are adding, and if it does, filter the view further. In your case it seems the field would be a reference to course. You would get all the teachers in that course. If the current user is not one of them you do not show.
Best regards