This project is read-only.

ContentItem and ContentPart

Topics: General, Writing modules
Jul 13, 2011 at 11:31 PM
Edited Jul 13, 2011 at 11:34 PM

I am reading through and I have a couple of questions.

How would you make State turn up in the List of Content Types in the admin?

Would it need a handler and a proxy class?

What code exists because the Address is a Part and not a Content Item?

Jul 13, 2011 at 11:55 PM

I'm sorry, but I don't understand the questions. Can you be a little more specific about what you are trying to achieve?

Jul 14, 2011 at 12:25 AM
Edited Jul 14, 2011 at 12:26 AM

I would like to create an appointment that participates on the 1 end of some relationships like taxonomy and users but participate on the N end of other relationships like a task.

Appointment has a User (owner)

Appointment has an AppointmentType (Taxonomy Term)

Task has an appointment (optional)

I am getting confused about whether I have to create an AppointmentPart class and AppointmentPartRecord class or an AppointmentRecord class only.

Jul 14, 2011 at 12:33 AM

Apointment is a content type apparently, so yes you''ll need a part and a record, not just a record.

Jul 14, 2011 at 12:54 AM

Ok, thankyou for the direction. I am going to create an "AppointmentPart : ContentPart<AppointmentPartRecord>" class and an "AppointmentPartRecord : ContentPartRecord" class.

Regarding the Migration, Content Types do not need the builder.Attachable, right?

Jul 14, 2011 at 12:59 AM

mmh, it's parts that are attachable, but the Appointment part would probably not need it if it's going to be specific to that type, no, if that's what you're asking.

Jul 14, 2011 at 1:03 AM

It is what I am asking, so ta