TypoScript is a syntax for defining information in a hierarchical structure using simple ASCII text content.
This means that:
* TypoScript itself does not "do" anything - it just contains information.
* TypoScript is only transformed into function when it is passed to a program which is designed to act according to the information in a TypoScript information structure.
In the programming sense TS isn't a language. It is a simple declaratic script suited for configuration.
Basically it comes down to <object>.<property> = <value>
So you've to be aware of those objects and its properties.
Now we'll go through by an example.
TypoScript:
1.myPage = PAGE
2.myPage.typeNum = 0
3.myPage.bodyTag = <BODY bgcolor="#ffffff">
4.myPage.10 = HTML
5.myPage.10.value =Hello There
Explanation:
1.Here "myPage" is defined to be a PAGE-object.
2.typeNum is a property of PAGE-object. It refers to the frame number.
3.Another property of a PAGE-object is "bodyTag".
4.Content-object of the kind "HTML" is defined. This HTML-object is at
position "10" in the Content-object (cObject) array of the PAGE-object "myPage".
5.The value is set to "Hello There".
*TypoScript is case-sensitive. i.e. object "myPage" and "mypage" are different.
We can define TypoScript in these locations below.
1.Page TSconfig - To Customize the branche of Pages tree and/or a specific page.
2.User TSconfig - Customization of users and their groups.
3.TypoScript Templates - Definition and Customization of each website found in the page tree.