Here you enter the basic information about your module. The most determining element for the rest of the creation process is the number of levels.
"Level" is here meant as a level of organization. For example, should this module be about books, you might want to classify them in a hierarchical way :
In this case, we would have 3 levels : we may call the first 'Type' (Fiction/Non-fiction) and the second 'Sub-type' (Science-Fiction/Romance/Philosophy), the third being the books themselves (La Gaya Scienza). We will then say that Science-Fiction and Romance sub-types are children of the type Fiction (which is their parent). Typically, the last level (here 'books') will have the most fields, the others being for classification purposes, but you may like a category description or something... Up to 9 levels are supported, which is completely arbitrary, but I couldn't see why we'd need more.
In the next steps, you will be asked informations about each of these levels (from top to bottom). It is suggested to think about it well before going through these steps...
For each levels, you will have to go through two steps: the first asks for general information about the level, and the second one will ask you to define every field (every attribute or piece of information) that this level has.
Keep in mind that some additional fields not directly defined by you will also be created for the module basic functionalities. These fields are:id, name, alias, item_order, parent, active and defaultDo not plan fields for these!
For each field, you will be asked a name and a friendly name. The name will be used in the code, in the templates and in the parameters only. It is the friendly name which will be visible to your visitors.
A mandatory field means that you won\'t be able to create a new item without giving a value to this field. It won\'t have any effect on file fields and may not work with lists.
Indexing a field for the Search Module means that if someone search your whole site with a keyword that is contained in this field, this item will be returned.
To have a field show up in the advanced search form means that if you use the module\'s search action in the searchmode "advanced", the user will have the possibility to make a search using this specific field (search an item in which this field has a particular value).
The field type defines what the field contains and the way the information will be entered. Here is a small explanation of each:
Here is what the list modes look like:
For each level, you must also decide which fields will be shown in the listing table of the admin panel. Remember that this is mostly for the editor to find his way through the items or seek quick information. The other fields will still be editable when an item is clicked.
In uncertainty, leave what's already there.
File fields cannot be shown normally in the admin panel. To do this, you will need the create a condition in the adminpanel template (see FAQ).
To give you an idea, here is what an adminpanel for a level may look like:
To display a list of elements, your module admin will have the possbility of choosing a different template for each level. The question here is about the display template for the final level (when we're displaying the details of one of the final level elements).
Let's say you have two levels (categories and items), and two categories. Every item of the first category will be displayed in a certain way, while items of the second category will be displayed in a different way. This means that you would need each category to have its own template for the detail display of its final level children. In other words, the "template level" here should be the "category" level.
If the display template for a final level item doesn't depend on its parent, leave this to "Only one template".