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

Hello Frames!


To give you a feel for working with frames in TYPO3, we will use yet another Hello World! example. The result of our labor will be the following two-part frameset:

To define a frameset, first specify the required pages in the template. There are three in our current example:

myframeset = PAGE
top = PAGE
bottom= PAGE

The frameset consists of the pages myframeset, top, and page, with myframeset containing only the frameset definition but no content. In the next step you assign a separate value for each page with the typeNum property.

myframeset.typeNum = 0
top.typeNum = 1
bottom.typeNum = 2

You then create appropriate content for the pages top and bottom. You should be as brief as possible when doing this, since the content is only there to distinguish the two frames.

top.10 = TEXT
top.10.value = Top
bottom.10 = TEXT
bottom.10.value = Bottom

You can now call the individual frame pages from the front end. Enter the relevant page ID in the address line followed by the type parameter...