From what I can tell, there are only two main facets of a lesson; the lesson_content and the lesson_event. The lesson_event relates to a specific date when a lesson is to occur. The lesson_content contains the body of the lesson with some non-visible fields for the Faculty to track for themself (Methodology, Learning objectives, Resources).

However, there is also an autocomplete field labeled 'Lesson' that confuses me. Lesson_content is the only content-type that uses field_lesson_id, and entering node reference to a lesson_event node tells me that post can't be referenced. Is it possible a content-type was accidentally left out of the archives?

From pe_lesson_content.inc:

'label' => 'Lesson',
'field_name' => 'field_lesson_id',
'type' => 'nodereference',
'widget_type' => 'nodereference_autocomplete',
....
'referenceable_types' =>
array (
'pe_lesson' => true,
0 => 1,

'pe_program' => false,
'pe_acad_term' => false,
....

Are lessons just defunct at this point? Will you be able to attach quizzes to them when it's done, or will quizzes continue to only be accessible through the /quiz interface?

Any info you can shed on this would be appreciated,
Thanks

Comments

dakala’s picture

That's a bug from the days when there was a single node type for lessons.

Yes, lesson_content is the material taught to a specific class on a particular date and time i.e. lesson_event. The same lesson_content can be used at more than one lesson_event. So, the referenceable_types array should include pe_lesson_event and NOT pe_lesson. The field_name should have made this clearer if it had been named pe_lesson_event_id (which will be addressed later).

For the time being, go to admin/content/node-type/pe-lesson-content/fields/field_lesson_id and select 'Lesson event' as the referenceable content type for the field.