WEC Template Developers Manual
2.3 Guidelines for creating Template Setup Typoscript
The Typoscript we have compiled (Appendix I) has come from several sources including the Template Basics tutorial from www.mcuniverse.com, Modern Template Building Document www.typo3.org, and some that we have custom-tailored for templating extensions / plug-ins. The setup Typoscript we’ve included in Appendix I is the standard for WEC.
Typoscript will be commented as to its function for easy maintenance.
Additional dynamic areas (other than those standardized by the W.E.C.) may be created if necessary.
Other Typoscript options may be set up for the navigational structure (or other customized areas) through TemplaVoila’s Local Processing feature, found in the Template Object Record. This Local Processing feature allows you to insert new fields independent of the Datastructure or will allow you to override existing Typoscript found in the Template Object’s parent Datastructure. A sample of that code demonstrating two different navigational structures is located in the second half of Appendix I.
2.4 File / Directory Naming Conventions
Template files will reside in TYPO3’s
Templates will be given a name (i.e. template1) and will also contain the number of columns (i.e. template1-2col) and an indicator of the color scheme (i.e. template1-2col-green). The template name will be applied to the main folder in the “fileadmin/tv-templates” folder. The template HTML file will be named “template.htm” and the CSS file will be named “styles.css”. All dependent image files will reside in an “images” folder.
To aid in the uploading of templates, WEC has developed a template packaging system. If you are uploading your own template manually, your template files may be zipped in a folder named for the appropriate template, uploaded to the templates directory, then unzipped within the directory (this assumes you have the KB Unpack extension – “kb_unpack” from the TYPO3 repository - installed in your TYPO3 backend).
The template naming convention should carry over into the TYPO3 template records and the TemplaVoila Template Object & Data Structure to avoid confusion. So, if you named your template folder template1, then when you create your TemplaVoila Template Object & Data Structure, you should name it Template 1.
If there is a template made specifically just for the home page of the website, that template’s name should indicate this (ie. template-home.htm). Additionally, the template record should indicate this somehow.
| 7 / 15 |


