[Typo3-UG Oesterreich] Content not visible in example from the "TypoScript By Example"-Tutorial

Walter Landgraf walter.landgraf at workcompany.at
Mon May 17 11:06:58 CEST 2004


I´m very new to TYPO3 and I am just trying to read, understand and use the examples of the tutorial "TypoScript By Example" (I have read "Der Einstieg"(in German) and "Modern Template Building, Part 1" so far). Now, for the first time, I have a question/problem I obviously cannot really solve by myself: on pages 13/14 of the "TypoScript By Example" - tutorial there is an example for creating a template from the scratch:

1)Constants:

cHeaderWrap = <FONT face="Verdana" size="3" color="#333333"><B>|</B></FONT>
cBodyTextWrap = <FONT face="Verdana" size="2"> | </FONT><BR>



2) Setup:

page = PAGE
page.typeNum = 0

page.10 = CONTENT
page.10 {
   table = tt_content

   select {
      pidInList = this
      orderBy = sorting
      }
}

tt_content = CASE
tt_content.key.field = CType

tt_content.header {
   1 = TEXT
   1.field = header
   1.wrap = {$cHeaderWrap}
   1.space = 3 | 2


}

tt_content.text < tt_content.header


tt_content.text.3 = TEXT
tt_content.text.3.field = bodytext
tt_content.text.3.fontTag = {$cBodyTextWrap }
tt_content.text.3.br = 1
tt_content.text.3.space = | 10
tt_content.text.3.parseFunc {
makelinks = 1
makelinks.http.keep = path
      makelinks.http.wrap = <B>|</B>
      makelinks.mailto.keep = path
      makelinks.mailto.wrap = <FONT color="blue">|</FONT>
      makelinks.mailto.ATagBeforeWrap = 1
   }

However using this "self-made" template I CANNOT SEE ANY CONTENT I have created! Only when I select ANY static template to be included, too, the content BECOMES VISIBLE! I thought the intention of this example was, NOT TO USE ANY STATIC TEMPLATES??? What am I DOING WRONG ???
I also got error-messages (in the Object Browser) because of the two "layers" of braces in this part of the code:

tt_content.text {
3 = TEXT
3.field = bodytext
3.fontTag = {$cBodyTextWrap }
3.br = 1
3.space = | 10
3.parseFunc {
makelinks = 1
makelinks.http.keep = path
      makelinks.http.wrap = <B>|</B>
      makelinks.mailto.keep = path
      makelinks.mailto.wrap = <FONT color="blue">|</FONT>
      makelinks.mailto.ATagBeforeWrap = 1
   }
}

So I removed one "set of braces" (see code on top of this message) and the error-messages were gone !!!???

Many thanks for your help in advance !






More information about the TYPO3-at mailing list