wichtige TypoScript-Variablen

#aktuelle Seitenid:

 

10=TEXT 10.value = Die aktuelle Seitennummer ist: {TSFE:id} 
10.insertData = 1 

 

 

siehe auch die Variablen für Entwickler.

 

weitere Beispiele aus TSREF:

(noch unsortiert und ungetestet)

 


10=TEXT 
10.insertData = 1 
10.data = ... 

 

get content from the $cObj->data-array[header]:

10.data = field : header

 

get content from the $cObj->parameters-array[color]:

10.data = parameter : color

 

get content from the $GLOBALS["TSFE"]->register[color]:

10.data = register : color

 

get the title of the page on the first level of the rootline:

10.data = leveltitle : 1

 

get the title of the page on the level right below the current page AND if that is not present, walt to the bottom of the rootline until there's a title:

10.data = leveltitle : -2 , slide

 

get the id of the root-page of the website (level zero)

10.data = leveluid : 0

 

get the env var HTTP_REFERER:

10.data = getenv : HTTP_REFERER

 

get the env variable $HTTP_COOKIE_VARS[some_cookie]:

10.data = global : HTTP_COOKIE_VARS | some_cookie

 

get the GET variable $HTTP_GET_VARS[username]:

10.data = global : HTTP_GET_VARS | username

 

get the POST variable $HTTP_POST_VARS[pasword]:

10.data = global : HTTP_POST_VARS | password

 

get the current time formatted dd-mm-yy:

10.data = date : d-m-y

 

get the current page-title:

10.data = page : title

 

get the current value:

10.data = current : 1

 

get input value from query string, (&stuff=...) (- 4.3)

10.data = GPvar : stuff

 

get input value from query string, (&stuff=...) (4.3 -)

10.data = GP : stuff

 

get the value of the header of record with uid 234 from table tt_content:

10.data = DB : tt_content:234:header

 

viele interessante Felder in TSFE:

10.data = TSFE:id
20.data = TSFE:baseUrl
30.data = TSFE:anchorPrefix
40.data = TSFE:cacheExpires
40.strftime = %d:%m:%y %H:%M:%S
50.data = TSFE:clientInfo|BROWSER
60.data = TSFE:clientInfo|VERSION
70.data = TSFE:clientInfo|SYSTEM
80.data = TSFE:clientInfo|FORMSTYLE

 

 

Informationen des letzten bearbeiteten Bildes:

10 = IMAGE
10.file = fileadmin/img/bspl_image.jpg
10.wrap = |<br />
   
20 = TEXT
20.data = TSFE:lastImageInfo|0
20.wrap = Bild Breite = |<br />
   
30 = TEXT
30.data = TSFE:lastImageInfo|1
30.wrap = Bild Höhe = |<br />
   
40 = TEXT
40.data = TSFE:lastImageInfo|2
40.wrap = Bild Typ = |<br />
   
50 = TEXT
50.data = TSFE:lastImageInfo|3
50.wrap = Bild + Pfad = |<br />
   
60 = TEXT
60.data = TSFE:lastImageInfo|origFile
60.wrap = Original Bild + Pfad = |<br />
   
70 = TEXT
70.data = TSFE:lastImageInfo|origFile_mtime
70.strftime = %d:%m:%y %H:%M:%S
70.wrap = Bild-Zeitstempel: |<br />

 

 

Informationen des letzten generierten Links:

10 = TEXT
10.value = dummy
10.typolink.parameter = 123
10.wrap = Hier der Link: |<br />
   
20 = TEXT
20.data = TSFE:cObj|lastTypoLinkUrl
20.wrap = die Url war: |
30 = TEXT 30.data = TSFE:cObj|lastTypoLinkTarget 30.wrap = das Target war: |

 

 

 

10.data = fullRootLine : -1, title

This gets the title "1. page before" in a page tree like the one below provided we are are the page "Here you are!" (or "Site root") and this TypoScript is in the template with root at "Site root". Red numbers indicate what values of keynumber would point to:

 - Page tree root                         -2
   |- 1. page before                      -1
      |- Site root (root template here!)   0
         |- Here you are!                  1 

 

 
Ihre aktuelle Seitenauswahl:  
>>>