Need help with part data

Topics: Writing modules
Apr 5, 2011 at 7:22 PM

Hello! I'm creating a simple bookstore module.

I created parts for books and cds by following the documentation online.

Namely, BookPart and CdPart, I can enter information about books and cds with them.

Now, I would like to create a new part to display summary information of the current books and cds together.

Should I create a separate record for that part as well? If not, how can I connect the data that those parts use in my new part?

Any help is greatly appreciated.

Thank you.

Apr 5, 2011 at 7:32 PM

It's not quite clear what you're trying to do. What's common between books and CDs? Why don't you put the common elements in a part and what's specific into specific parts?

Apr 5, 2011 at 7:57 PM

Nothing common between them except the user that created them.

Indeed I would like to display a tabstrip with Books and Cds tabs. When Books tab clicked, it will list all the books entered from BookPart by that user. When Cds tab clicked, it will list all the cds entered from CdPart by that user.

Apr 5, 2011 at 7:59 PM

I still don't understand what the problem is, sorry. Why don't you create CD and Books content types and associated lists?

Apr 5, 2011 at 8:19 PM

Can you point an example or a documentation for this please?

Apr 5, 2011 at 8:24 PM


The topic has been updated for 1.1 which is due next week.

Apr 5, 2011 at 8:25 PM

Thank you very much for your assistance and for this great CMS!