Book Image

Mastering TypoScript: TYPO3 Website, Template, and Extension Development

Book Image

Mastering TypoScript: TYPO3 Website, Template, and Extension Development

Overview of this book

Free, open-source, flexible, and scalable, TYPO3 is one of the most powerful PHP content management systems. It is well suited for creating intranets and extranets for the enterprise. While providing an easy-to-use web interface for non-technical authors and editors of content, its messaging and workflow system enable shared authoring and collaboration. TYPO3 provides flexible and powerful interfaces for both content editors and administrators, giving them full control of the core aspects the system. However for developers who need to customize the system, TYPO3 offers a powerful configuration language called TypoScript. Good knowledge of TypoScript is really a prerequisite for implementing complex applications with TYPO3 and gives developers full control over the configuration of TYPO3 and its template engine. TypoScript enables the complete output template to be created and manipulated, giving you full control over the layout of the site. TypoScript also allows you to integrate dynamic contents, JavaScript-based menus, Flash, Graphics, etc. with ease. You have maximum control over the design of the website and can control all options that would otherwise be addressed by HTML-simple text output, formatting, and much more. TypoScript also allows you to generate graphics at run time and display different content dynamically.
Table of Contents (19 chapters)
Mastering TypoScript: TYPO3 Website, Template, and Extension Development
Credits
About the Author
Preface

Layer Menus


Menus based on DHTML layers and JavaScript can be created with the objects TMENU_LAYERS and GMENU_LAYERS. You don't have to know these technologies to do this. Even if you have no experience with this rather complex subject, you can create functional DHTML applications. The two objects are based on TMENU and GMENU respectively and extend their properties.

Before you use these menus, keep in mind that older browsers will have problems displaying them. This is due to their imperfect support of the Document Object Model (DOM). But even current browsers like Opera 7 have their problems with these menus since these browsers work with a newer version of DOM. If you want to use these menus in these browsers in spite of that, you have to modify the layer functions. Search for the following code in the \media\scripts\jsfunc.layermenu.js file:

this.x= (bw.ns4||bw.op)?this.css.left:this.el.offsetLeft;
this.y= (bw.ns4||bw.op)?this.css.top:this.el.offsetTop;
this.height=(bw.ie4||bw.ie5||bw...