I'm trying to create some related content types: Class Description, Location, and Class Session. Our organization has classes that offer the same content (e.g. "How to Bake a Cake") at different locations (e.g. "Classroom A" and "Classroom B") and times. The Description contains a few paragraphs about what the class covers, which is the same for every instance of the class, and each Location has its address and so forth.
As an experiment, I successfully created content types for Description and Location, using a nodereference for location and a datetime field that can repeat. So I can say that "How to Bake a Cake" takes place in "Classroom B" at noon on Friday and at 4pm on Monday, and I can make those meetings appear separately on a calendar.
The problem is that any given class might be taught in different locations as well as at different times. So I think I need another entity, Class Session, which refers to both the Class Description and the Location. Class Session would only consist of two nodereferences (description, location) and one datetime field. It doesn't need its own title or body, because those can come from Class Description--they're the same for every session/instance of the class.
The problem comes when I try to create the Class Session content type--it seems like title and body are required. I'm sure problems of this structure are common, so is there some good way to work around it?
Comments
Comment #1
yched commentedYou can remove the body field on the edit form for your content type :
admin/content/types, click the 'edit' link for your type
under 'submission form settings', empty the 'Body field label' input.
Titles, OTOH, are required for nodes, but you can bypass this using http://drupal.org/project/auto_nodetitle
Comment #2
egm commentedThank you--this did exactly what I needed.