Page 1 of 1

Creating Parent / Child catalog with CTL Module Maker

Posted: Fri Feb 25, 2011 6:32 pm
by breadfarms
Hello,

I am new to CMSMS and CTL Module Maker, and I was wondering if you guys could help me figure out to create a child entity and link it to a parent entity.

I have looked through the example but I don't understand it. The example reads,


Example 1: Library module

Let's take again our classical example of a hierarchical module: a library module. We wish to classify our books in the following way:

* Book type
o Genre
+ Book


To give it some reality:

* Fiction
o Science-Fiction
+ Fahrenheit 451
o Romance
o Suspense

Then it reads: In order to link them together, we will have to create a field in Genres that will hold it's parent (for instance a dropdown field, specifying the name of the database table). The same should be done with Books. Although the structure supports multiple children (with the "child" field type), this wizard is not to that point yet.

I don't understand what this means: (create a field in Genres that will hold it's parent) Because when I create genre as an entity if I make it autonomous it shows up in the new module underneath but not connected to Book type, However if I set genre to non-autonomous it does not even show up in the new module. Not even inside the Book Type entity.

Is there anyway someone could walk me through the process of setting up.

What do I set the child entity to (autonomous or non-autonomous)
Then how do I make the Genre a child of Book Type

I am using CTLModuleMaker 2.0.3

Any assistance you can provide would be greatly appreciated.


Thanks
Benjamin