
Website meiner Frau Martina Thiele:
www.tagesmutter- luebbecke.de
Zur Webseite vom Ferienhaus auf Usedom von meinem Bruder Christian Thiele:
www.am-jungfernberg.de
Mit der Definition der Datentypen können Sie sehen, welche Werte sie bei einer bestimmten Objekteigenschaft benutzen können. So hat z.B. das cObject TEXT die Eigenschaft "value". Hier in der Datentypen-Referenz können Sie dann nachschlagen, ob jetzt z.B. eine Zahl, ein Text, ein Ja/Nein oder vielleicht ein Dateipfad angegeben werden muss, damit dieser value eine sinnvolle Ausgabe im Frontend produziert.
Datentyp | Beispiel | Kommentar | Standard |
|---|---|---|---|
<body class="main"> |
|
| |
right | right / left /center | left | |
boolisch | Setzt den Inhalt auf den aktuellen Wert. (Siehe auch »split) |
| |
| Text-String |
| |
1 | Boolischer Wert (also Wahr oder Falsch) |
| |
Wert1,Wert2,Wert3 | Liste von mehreren komma-separierten Werten |
| |
Mit diesem Wrap wird der Wert "Warnung!" mit einem <span>-Tag umschlossen: | Der Text vor dem "|" Pipe-Symbol wird vor diesem gesetzt, das Pipe-Symbol wird mit dem Orginaltext ausgetauscht und der Text hinter dem Pipe-Symbol wird nach dem "|" gesetzt. Dabei wird der Text durch eine trim-Funktion geleitet. Möchte man dies vermeiden, dann hilft die Funktion noTrimWrap weiter. |
| |
get content from the $cObj->data-array[header]: get content from the $cObj->parameters-array[color]: get content from the $GLOBALS["TSFE"]->register[color]: get the title of the page on the first level of the rootline: 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: get the id of the root-page of the website (level zero) Gets the value of the user defined field “user_myExtField” in the root line (requires additional config in TYPO3_CONF_VARS to include field!) get the env var HTTP_REFERER: get the env variable $HTTP_COOKIE_VARS[some_cookie]: get the current time formatted dd-mm-yy: get the current page-title: get the current value: get input value from query string, (&stuff=) get input value from query string, (&stuff[key]=) get the current id get the value of the header of record with uid 234 from table tt_content: Gets the title of the page right before the start of the current website: Returns localized label for logout button Outputs the current root-line visually in HTML: Gets path to file relative file to siteroot possibly placed in an extension: | This returns a value from somewhere in PHP-array, defined by the type. The syntax is "type : pointer" field : [fieldname from the current $cObj->data-array in the cObj.] As default the $cObj->data-array is $GLOBALS["TSFE"]->page (record of the current page!) In TMENU: $cObj->data is set to the page-record for each menuitem. In CONTENT/RECORDS $cObj->data is set to the actual record In GIFBUILDER $cObj->data is set to the data GIFBUILDER is supplied with. parameters : [fieldname from the current $cObj->parameters-array in the cObj.] See ->parseFunc! register : [fieldname from the $GLOBALS["TSFE"]->register] See cObject "LOAD_REGISTER" leveltitle, leveluid, levelmedia: [levelTitle, uid or media in rootLine, 0- , negative = from behind, “ , slide” parameter forces a walk to the bottom of the rootline until there's a “true” value to return. Useful with levelmedia.] levelfield: Like “leveltitle” et al. but where the second parameter is the rootLine field you want to fetch. Syntax: [pointer, integer], [fieldname], [“slide”] global : [GLOBAL-var, split with | if you want to get from an array! DEPRECATED, use GPvar, TSFE or getenv] date : [date-conf] page : [current page record] current : 1 (gets 'current' value) level : 1 (gets the rootline level of the current page) GPvar: Value from GET or POST method. Use this instead of global TSFE: Value from TSFE global main object getenv: Value from environment vars getIndpEnv: Value from t3lib_div::getIndpEnv() DB: Value from database, syntax is [tablename] : [uid] : [field]. Any record from a table in TCA can be selected here. Only marked-deleted records does not return a value here. fullRootLine : 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 LLL: Reference to a locallang (php or xml) label. Reference consists of [fileref]:[labelkey] path: path to a file, possibly placed in an extension, returns empty if the file doesn't exist. cObj: [internal variable from list: “parentRecordNumber”]: For CONTENT and RECORDS cObjects that are returned by a select query, this returns the row number (1,2,3,...) of the current cObject record. debug: Returns HTML formated content of PHP variable defined by keyword. Available keys are “rootLine”, “fullRootLine”, “data” -------------------- Getting array/object elements. You can fetch the value of an array/object by splitting it with a pipe “|”.Example: TSFE:fe_user|user|username Getting more values. By separating the value of getText with "//" (double slash) you let getText fetch the first value. If it appears empty ("" or zero) the next value is fetched and so on. Example: = field:header // field:title // field:uid This gets "title" if "header" is empty. If "title" is also empty it gets field "uid" fullRootLine : Getting a value from the rootline (TSFE->rootLine) going all the way to the root of the page tree. [keynumber, fieldname, “slide”] Keynumber is relative to the current site root, so negative numbers refer to subsequent levels below the site root. Fieldname is the name of the datafield to get. For “slide”, see levelmedia type above. |
|