Home > Planning > Naming Your Modules

Naming Your Modules

It's important to use consistent names among your various templates.

Each content element is organized in the database according to both its page and the name of its module. This is what allows multiple modules of the same type on a page. This has two important implications:

  1. Once you have content on your site, if you change the name of a module, the content in that module will not be displayed

  2. If you change templates for a given page, any content from that page that doesn't have the same type of module with the same module name on the new template will not be displayed
The good news is that the content isn't lost. If you switch or revise the templates so the correct modules and names are present, the content will reappear.

This means that it's a good idea to use consistent module names across all your templates. For example, the main detail text on each template should have the same name. Likewise, the menu that provides the site's primary form of navigation should have the same name across templates.

The best way to maintain this type of consistency is to design your default.cfm template first, solidifying your site's look and including the main elements that are common to nearly all templates. Then create other templates by copying and modifying Default.cfm.