The Module version field is used to specify the release level (and the level of stability) of the module. In general, the OpenCms community uses the following convention: ... So 1.0.1 indicates that it is the first major release of the module, and that one minor revision (which usually includes only bug fixes) has been made. If a significant feature has been added, the minor version number should be incremented. If the module has gone through any major changes (particularly in the API), then the major version number should be incremented. Typically, until the module is stable, modules use 0 as the major version number. By default, then, OpenCms assigns our module the version number 0.1 the first minor version of the module. The Module group field is used to sort the modules by category. There are no established categories. Since our module is going consist primarily of templates, I have put it in the module group Templates. Sometimes a module needs to run special code during certain OpenCms events (such as startup, shutdown, publish, or module installation). To do this, developers can create a class, specified in the Action class field, that handles particular events. Specifying the class name here will ensure that the class is loaded and executed by OpenCms. An action class must implement the org.opencms.module.I_CmsModuleAction interface. In the Module Creator section, the Author name and Author email fields are used to provide information about you, the module creator. Beneath the Module Creator section, there is a section called Module Folders, which has six checkboxes. These checkboxes determine which folders are automatically created in the VFS. 1. Create Modulefolder: If this is checked, a folder module will be created in /system/modules. The module folder is where we will put all of the module files, so this box should almost always be checked. The five other folders listed here are subfolders of this folder, so this checkbox must be checked for the others to work. 2. Create templates subfolder: If this is checked, a folder named templates will be created in the module folder. When we create new templates in Chapter 6, we will use this folder, so it is a good idea to create it now. 3. Create elements subfolder: If this is checked, a folder named elements will be created in the module folder. This folder is used for storing pieces of JSP code or text files that the module requires. Usually, you should check this box.
Try discount web hosting services, our team’s aim is to offer the best possible web hosting services, at the lowest possible price.
This entry was posted
on Thursday, January 3rd, 2008 at 1:58 am and is filed under Java Content Management.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.