Naming Conventions.
When faced with a template just where will the module ‘User6’ appear? The naming convention used isn’t very helpful to me as a designer in locating the position. I personally would prefer a more helpful location-based naming convention to be used in templates, something that will give me a hint as to where ‘Advert3’ will be displayed when I select it.
Wikipedia defines semantics as the study of meaning, usually in language. The word "semantics" itself denotes a range of ideas, from the popular to the highly technical. It is often used in ordinary language to denote a problem of understanding that comes down to word selection or connotation.
If we are to use a semantically based naming convention then module names would be based upon their position resulting in modules such as top left, top right, menu, left column etc. I have come across template designers in the past who used names such as these, but unfortunately they were not in the locations described when the template went live. Very confusing and it looked unprofessional too.
Naming hilites, classes and other template features.
In addition to the naming of the individual modules there is also the option to create different versions of modules within the Joomla template framework. I believe that the different options controlling the CSS formatting, available to a particular module, should be clear from the name of the highlight choices available. This will also make editing any underlying CSS files simpler.
I feel that names such as ‘Hilite1’ should be dropped in favour of the more descriptive terms light, dark, red, grey, purple, bold, shaded etc. All these phrases are far more applicable to the description of the module versions than a generic version number 1, 2 or 3.
When creating a template the designer should be considering the following elements:
- Is there a graphic available for reference? – If so semantic names are not necessary, although they are useful
- Do the names given to the modules have any consistency, user 1-5, advert1-3, that would help define relative positions?
- Are the names based on the function of the module rather than position? Such as search, login, vote etc.
- Double and triple check to ensure the all modules are positioning as expected, a module named left appears on the left and any demo content reflects this.
There are many different reasons and choices when it comes to naming conventions. There is no right or wrong choice however a designer should attempt to be consistent, clear and keep the end user in mind at all times.






Andy Neale Comment Link