Chapter 1. Futuristic Template Building (FTB)

来源:百度文库 编辑:神马文学网 时间:2024/05/01 07:01:04
Extension Key: doc_tut_ftb1
Copyright 2004, Kasper Skårhøj & Robert Lemke,
 
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
 
The content of this document is related to TYPO3
- a GNU/GPL CMS/Framework available from www.typo3.com
 
 
1.1. Introduction
What does it do?
This extension is a from-scratch tutorial about how to build a CMS-powered website with TYPO3 based on a HTML-template and the extension TemplaVoila (ext key: “templavoila”).
It is based on the same basic material as the reknown “Modern Template Building, Part 1” but demonstrates the templating concepts taken to a new level compared to the Modern Template Building tutorial.
The document is recommended for developers on beginner level. However, before doing this tutorial you should have gone through “Getting Started” and “Modern Template Building, Part 1” in order to equip yourself with basic TYPO3 knowledge.
The website you will be guided to build will look like this:

 
 
 
Goal
The goal of the tutorial is to present to you a newly developed concept of templating revolving around the extension “templavoila” mixed with what is known as “FlexForms” and “Data Structures”. Further it turns the traditional way of working with content elements around from being “columns”-centered to being totally hierarchically nested inside each other.
Whether this tutorial provides a best-practice implementation or not is not sure yet - that will depend on the general success and adoption of these techniques. But it is backed by high motivation from sponsors and personally we believe it holds great potentials.
The extension “TemplaVoila”
The extension “TemplaVoila” was developed by Kasper Skårhøj and Robert Lemke for a project in a large, french company, Dassault Systemes.   TemplaVoila was the result of the innovation that followed some problem solving for the project. In particular the problems that TemplaVoila addresses are how to create more flexible page structures than currently known in TYPO3s concept of “columns”. Further, it integrates traditional templating on the content element level but with a far more flexible point-n-click style than seen before. Finally the development of TemplaVoila also lead to some enhancements of the TYPO3 Core, in particular a concept called FlexForms which allows TYPO3s backend to build hierarchical forms and store their content into XML structures.
Dedication
This time  want to dedicate this document to my friends at Dassault Systemes in France. I want to thank you from my hearts deep for your generouscity, both personally and professionally, and I have loved to work with and for you all the time, both in Denmark and Paris. It has truely blessed my life on all levels and for TYPO3 your adoption has been a major reward and testimony to the quality it holds.
The extension
This tutorial has all its files contained in a TYPO3 extension (doc_tut_ftb1). Extensions normally contain scripts and resources that extend the capabilities of TYPO3. However this tutorial extension does not interact with TYPO3s core if you install it - it merely serves as a vehicle for transporting the tutorial files to your server and for presenting the tutorial document online on typo3.org.
Therefore to follow this tutorial;
first install the dummy-package (see The Basics section of the tutorial “Modern Template Building, Part 1”)
then import the extension "doc_tut_ftb1" from TER (TYPO3 Extension Repository) with the EM (Extension Manager) and you will have all files at hand on your server when you need them.
This tutorial document can either be read online or you can download it as a SXW file from typo3.org for your convenience. If you are lucky some merciful soul might have uploaded a PDF version for you as well...
WARNING - beta software
Although TemplaVoila is used in production it is far from finished. The same goes for FlexForms - a core feature of TYPO3 3.6.0
You must be aware that what you are reading about in this document is all subject to change and we expect to revise this tutorial heavily upon the final release of the TemplaVoila extension. Please bear this in mind while you play with this!
Also notice that TYPO3 in version 3.6.0 is a requirement for this tutorial!