Справочник по typoscript
Post on 11-Feb-2018
263 views
TRANSCRIPT
-
7/23/2019 TypoScript
1/190
TypoScript - doc_core_tsref TypoScript
TypoScript
: doc_core_tsref
: ru
: tsref, typoscript, reference, forDevelopers, forAdvanced
2000-2009, TYPO3 Core Development Team,
Open Content License http://www.opencontent.org/opl.shtml
TYPO3
- GNU/GPL CMS/Framework www.typo3.org
TYPO3 4.3, 2009
1
-
7/23/2019 TypoScript
2/190
TypoScript - doc_core_tsref TypoScript
TypoScript...................1
..................................................4
.......................................................4 .......................................4
............................................5
........................................................5
......................5
................................12
......................................................12
...................................................16
............................16
.................................................26
stdWrap.........................................................26
imgResource.................................................33
imageLinkWrap.............................................34
numRows.......................................................35
select.............................................................35
split...............................................................37
if....................................................................38
typolink.........................................................40
textStyle........................................................43encapsLines..................................................45
tableStyle......................................................47
addParams....................................................47
filelink...........................................................48
parseFunc......................................................49
makelinks......................................................52
tags:..............................................................53
HTMLparser...................................................54
HTMLparser_tags...........................................55...............................................56
Toplevel objects ( ). .56
TLO.......................................57
"CONFIG".......................................................57
"CONSTANTS"................................................78
"PAGE"...........................................................78
"FE_DATA".....................................................83
"FE_TABLE"....................................................83
"FRAMESET"..................................................84
"FRAME"........................................................84
"META"..........................................................85
"CARRAY"......................................................85
(cObject).............86
HTML.............................................................87
TEXT..............................................................87
COBJ_ARRAY (COA, COA_INT)........................88
FILE...............................................................88
IMAGE............................................................89
IMG_RESOURCE.............................................90
CLEARGIF......................................................90
CONTENT.......................................................90
RECORDS......................................................91
HMENU..........................................................93
CTABLE........................................................103
OTABLE.......................................................103
COLUMNS....................................................104
HRULER.......................................................104
IMGTEXT......................................................105
CASE...........................................................109
LOAD_REGISTER..........................................109
RESTORE_REGISTER....................................110
FORM...........................................................110
SEARCHRESULT...........................................117
USER USER_INT........................................119
PHP_SCRIPT.................................................119
PHP_SCRIPT_INT..........................................120
PHP_SCRIPT_EXT.........................................121
TEMPLATE....................................................122
MULTIMEDIA................................................124
EDITPANEL...................................................125
GIFBUILDER...........................................126
GIFBUILDER.................................................126
..........128
GifBuilderObj:........................................135
MENU......................................136
.........................................136
TMENU,GMENU IMGMENU.....................................139
[menuObj].sectionIndex..............................139
GMENU........................................................140GMENU_LAYERS / TMENU_LAYERS...............142
GMENU_FOLDOUT.......................................146
TMENU.........................................................148
2
-
7/23/2019 TypoScript
3/190
TypoScript - doc_core_tsref TypoScript
TMENUITEM.................................................148
IMGMENU:...................................................150
IMGMENUITEM.............................................151
JSMENU........................................................151JSMENUITEM................................................152
media/scripts/....................153
media/scripts/ ...............................153
fe_adminLib.inc...........................................153
tipafriendLib.inc..........................................162
plaintextLib.inc............................................163
.........................166
static_template...........................................166
Media..........................................................166
PHP...................167
....................................................167
.....................167
:.....................169 .........................................................170
" ".......................171
index.php...............................................172
....................................................172
index.php...................172
:.........................................................172
:......................................173
..............173
3
-
7/23/2019 TypoScript
4/190
TypoScript - doc_core_tsref
, TYPO3 TypoScript. , , , .
TypoScript, TypoScript .
: TypoScript ! . , :
myObject = HTML
myObject.Value = HTML - code
, :
myObject = htmlmyObject.value = HTML - code
"HTML". .
4
-
7/23/2019 TypoScript
5/190
TypoScript - doc_core_tsref
, , TypoScript. .
, "", HTML. "", . "", , , HTML RGB .
: : :
:
align right right / left / center , HTML
left
VHalign .. = .. = :r , c
r/c/l , t/c/b (, , ) , ( / / )
l , t
resource :toplogo*.gif
:fileadmin/picture.gif
1) . (*) . "*" ( ). ,
!!!2) "/", ( ) , . .
imgResource "file" imgResource:file = toplogo*.giffile.width = 200
GIFBUILDER:file = GIFBUILDERfile {
... ( GIFBUILDER)}
1) "resource" () + imgResource( ) $TYPO3_CONF_VARS["GFX"]["imagefile_ext"](localconf.php). pdf,gif,jpg,jpeg,tif,bmp,ai,pcx,tga,png.
2) GIFBUILDER
HTML-code HTML
target _top_blankcontent
. , , .
imageExtension jpgweb (gif jpg ..)
$TYPO3_CONF_VARS["GFX"]["imagefile_ext"] (localconf.php). pdf,gif,jpg,jpeg,tif,bmp,ai,pcx,tga,png. "web" . , web (gif jpg) !
degree -90 90,
posint / int+
int ( , , "")
5
-
7/23/2019 TypoScript
6/190
TypoScript - doc_core_tsref
: : : :
str / string / value .( ,
, "")boolean 1
( ) "".
rotation , 0 360
x,y,w,h 10,10,5,5 x,y .w,h .
HTML-color red#ffeecc
HTML :
Black = "#000000"Silver = "#C0C0C0"Gray = "#808080"White = "#FFFFFF"Maroon = "#800000"
Red = "#FF0000"Purple = "#800080"Fuchsia = "#FF00FF"Green = "#008000"Lime = "#00FF00"Olive = "#808000"Yellow = "#FFFF00"Navy = "#000080"Blue = "#0000FF"Teal = "#008080"Aqua = "#00FFFF"
GraphicColor red (HTML-)#ffeecc (HTML-)255,0,255 (RGB-)
:red : *0.8("red" 0.8)#ffeecc : +16 ("ffeecc" #fffedc, 16 )
HTML- RGB- () .
, ::[] : [], , / RGB- "*", .
page_id this34
Id () "this" (=id )
pixels 345
list item,item2,item3
margins 10, 5.
()10,0,0,5
l,t,r,b, , ,
wrap font : |
| "" -. , , .
linkWrap : |
| {x}; x (0-9) PHP . .
, {x} uid . id .
6
-
7/23/2019 TypoScript
7/190
TypoScript - doc_core_tsref
: : : :
case upper "upper" / "lower"
space 5 | 5 " | " | .
date-conf d-m-y ( --) PHP Date()!
a - "am" "pm"A - "AM" "PM"d , , 2 ( )D , , 3 ; . "Fri"F , , ; . "January"h - , , 12 H - , , 24 i , j , , l ( 'L') , ,
; . "Friday"m , M , , 3 ; . "Jan"s , S , ,2 ; . "th", "nd"U Y , , 4 w , , 0 y , , 2 z , ; . "299"
7
-
7/23/2019 TypoScript
8/190
TypoScript - doc_core_tsref
: : : :
strftime-conf "--" =%e:%m:%y
"::" =%H:%M:%S %T
%a ,
%A , %b , %B , %c %C (, 100, , 00 99)%d , (00 31)%D , %m/%d/%y%e , ,
( ' 1' '31')%h , %b%H , 24- ( 00 23)%I , 12- ( 01 12)%j ( 001 366)%m , ( 01 12)%M , %n %p - `am', `pm' %r , a.m. p.m.%R 24
%S , %t %T , , %H:%M:%S%u , [1,7], 1 %U , , %V ISO 8601:1988, 01 53, 1 , 4 , .%W , , , .
%w , , - 0%x , %X - , %y , ( 00 99)%Y , , %Z , %% - `%'.
UNIX-time 07/04 2000 23:58:955144722
, 1/1 1970...
path fileadmin/stuff/ .
-data :-data: row '150,*'
8
-
7/23/2019 TypoScript
9/190
TypoScript - doc_core_tsref
: : : :
-params :-params
'border="0" framespacing="0"'getText
$cObj->[header]:= field : header
$cObj->[color]:= parameters : color
$GLOBALS["TSFE"]->register[color]:= register : color
:= leveltitle : 1 , , , := leveltitle : -2 , slide id ( )= leveluid : 0
user_myExtField ( TYPO3_CONF_VARS !)= levelfield : -1 ,user_myExtField , slide
$HTTP_COOKIE_VARS[some_cookie]:= global : HTTP_COOKIE_VARS |some_cookie
dd-mm-yy:= date : d-m-y
:
= page : title
:= current : 1
- PHP, . " :"
field : [ $cObj-> cObj.] $cObj-> -$GLOBALS["TSFE"]->page ( !) TMENU: $cObj-> CONTENT/RECORDS $cObj-> GIFBUILDER $cObj->
GIFBUILDER .
parameters : [ $cObj-> cObj.] ->parseFunc!
register : [ $GLOBALS["TSFE"]->register] cObject "LOAD_REGISTER"
leveltitle, leveluid, levelmedia: [, uid ,0- , negative = , , slide , true. levelmedia].
levelfield: , leveltitle .., . : [, ],[_], [slide]
global : [GLOBAL , | !, GP, TSFE getenv]
date : [ ]
page : [ ]
current : 1 ( "" )
level : 1 ( )
9
-
7/23/2019 TypoScript
10/190
TypoScript - doc_core_tsref
: : : :
= level : 1
, (&stuff=)= GP : stuff , (&stuff[key]=)= GP : stuff | key
HTTP_REFERER:= getenv : HTTP_REFERER IP = getIndpEnv : REMOTE_ADDR
uid 234 tt_content:
= DB : tt_content:234:header
, := fullRootLine : -1, title
logout= LLL:EXT:css_styled_content/pi1/locallang.x:login.logout
, :path:EXT:ie7/js/ie7-standard.js
cObject= cObj : parentRecordNumber
HTML:= debug : rootLine
GP: GET POST . .
GPvar: GPvar , GP.
getenv:
getIndpEnv: t3lib_div::getIndpEnv()
DB: , :[_] : [uid] : [].
TCA . .
fullRootLine : : [,], [_], [slide]. "" . , !. levelfield, , (). fullRootLine .
, - :
- [-2]|- 1. [-1]
|- ( !)[0]
|- ! [1]
slide , levelfield .
LLL: locallang (php xml) . [__]:[]
path: , , , .
CObj: [ :parentRecordNumber]: CONTENT RECORDS cObjects, select, (1,2,3,...) cObject.
debug: PHP, , HTML.
rootLine, fullRootLine, data.
/. /, |.
10
-
7/23/2019 TypoScript
11/190
TypoScript - doc_core_tsref
: : : :
: TSFE:fe_user|user|username
. getText "//"( ), getText . ("" ), ..:= field:header // field:title // field:uid "title" "header" . "title" , "uid".
dir pdf, gif jpg fileadmin/files/ ( "fileadmin/files/")fileadmin/files/ | pdf,gif,jpg |name | r | true
[, ] | [] | [: name, size, ext,date] | [: "r"] | [ : ] , .: "lockFilePath" . .
function-name :user_reverseString :user_stringReversing->reverseString
. USER cObject. , ( ) user_. TYPO3_CONF_VARS. , / , typo $conf (TS )
$content ( ). , , ( USER/USER_INT) , ux_ . InsideTYPO3!
[tsref:(datatypes)]
: Object types " " , :
: : : :
cObject HTML / TEXT / IMAGE ....( " ", "cObjects")
frameObj FRAMESET / FRAME
menuObj GMENU / TMENU / IMGMENU / JSMENU
.sectionIndex
.alternativeSortingFields( - )
GifBuilderObj TEXT / SHADOW / OUTLINE / EMBOSS / BOX / IMAGE / EFFECT
11
-
7/23/2019 TypoScript
12/190
TypoScript - doc_core_tsref
:, ->[_] , , "_" _. .
(+calc): "- +calc". "+calc" , "+-/*"., "". .
:
45 + 34 * 2 = 158 ( : (45+34)*2=158 )
"... /stdWrap": "type /stdWrap", stdWrap .
:
pixels /stdWrap: , stdWrap.
:
.pixels.field = imagewidth
.pixels.intval = 1
, "imagewidth" $cObj->_ , , , intval().
optionSplit:optionSplit . , , . , , , , , , .
:
|*| - , , .
|| - , , .
1. , , .
2. (""), .
3. , .
4. .
: 1 || 2 |*| 1 || 2 || 3 |*| 1 || 2
:
, , .
. :
IntroductionWho are we?Business
12
-
7/23/2019 TypoScript
13/190
TypoScript - doc_core_tsref
ContactLinks
( ):
temp.topmenu.1.NO {backColor = red....
}
() linkWrap GMENU, , .NO optionSplit. , , . :
||
:
. ,
.TS: backColor = red
Introduction (red)Who are we? (red)Business (red)Contact (red)Links (red)
:
. , .
TS: backColor = red || yellow || green
Introduction (red) , 1Who are we? (yellow) , 2Business (green) , 3Contact (green) , 3 ()Links (green) , 3 ()
|*|
:
("white"). , ,
.TS: backColor = red || yellow |*| white
Introduction (red) , 1Who are we? (yellow) , 2Business (white) Contact (white) Links (white)
:
("blue || olive"). , .
TS: backColor = red || yellow |*| white |*| blue || olive
Introduction (red) , 1Who are we? (yellow) , 2Business (white)
13
-
7/23/2019 TypoScript
14/190
TypoScript - doc_core_tsref
Contact (blue) , 1Links (olive) , 2
... ( !)Introduction (red) , 1Who are we? (yellow) , 2Business (white) .... (white) .... (white) .... (white) .... (white) Contact (blue) , 1Links (olive) , 2
... ( , )
Introduction (red) , 1Who are we? (yellow) , 2Contact (blue) , 1Links (olive) , 2
( , )
Introduction (red) , 1Contact (blue) , 1Links (olive) , 2
"1: , , "
, , , - .
"2: , "
:
. ., |*||*| !
TS: backColor = red || yellow |*||*| blue || olive
Introduction (red) , 1Who are we? (yellow) , 2
Business (yellow) , 2 ()Contact (blue) , 1Links (olive) , 2
"3: , "
:
. . , |*||*| !
TS: backColor = |*||*| blue || olive
Introduction (blue) , 1 ()Who are we? (blue) , 1 ()Business (blue) , 1 ()Contact (blue) , 1Links (olive) , 2
14
-
7/23/2019 TypoScript
15/190
TypoScript - doc_core_tsref
"4: "
:TS: backColor = red |*| yellow || green |*|
Introduction (red) Who are we? (yellow) , 1Business (green) , 2.... (yellow) , 1.... (green) , 2.... (yellow) , 1.... (green) , 2Contact (yellow) , 1Links (green) , 2
15
-
7/23/2019 TypoScript
16/190
TypoScript - doc_core_tsref
.
: && (), || ()
"&&" "||" "AND" "OR". AND . , .
TypoScript .
:
, Internet Explorer Windows ( Mac):
[browser = msie] && [system = win]
Opera Netscape:
[browser = opera] || [browser = netscape]
Internet Explorer Netscape. Netscape, 4.
[browser = msie] || [browser = netscape] && [version => 4]
browser
:
[browser = browser1,browser2,...]
:
: :
Microsoft Internet Explorer msie
Netscape Communicator netscape
Lynx lynx
Opera opera
PHP fopen php
AvantGo (www.avantgo.com) avantgo
Adobe Acrobat WebCapture acrobat
IBrowse (amiga-browser) ibrowse
Teleport Pro teleport
?? ( "mozilla" )
unknown
($browsername.$browserversion, . "netscape4.72") strstr().
, "netscape" "scape", "net" netscape.
"netscape4" netscape 4.xx.
- , .
:
netscape opera:
[browser = netscape, opera]
16
-
7/23/2019 TypoScript
17/190
TypoScript - doc_core_tsref
version
:[version = value1, >value2, =value3,
<
:
"4.03":
[version= =4.03]
, 4 netscape 3:
[version= >4][browser= netscape3]
system
:
[system= system1,system2]
:
: :
Linux linux
SGI / IRIX unix_sgi
SunOS unix_sun
HP-UX unix_hp
Macintosh mac
Windows 3.11 win311
Windows NT winNT
Windows 95 win95
Windows 98 win98
Amiga amiga
, , .
, "win9" "win95" "win98".
:
windows mac:
[system= win,mac]
17
-
7/23/2019 TypoScript
18/190
TypoScript - doc_core_tsref
device
:[device= device1, device2]
:
: :
pda
WAP wap
Grabbers: grabber
: robot
, , .
:
WAP- :
[device= wap, pda]
useragent
:
[useragent= agent]
:
getenv(HTTP_USER_AGENT)
"*" / agent !
:
HTTP_USER_AGENT - "Mozilla/4.0 (; Lotus-Notes/5.0; Windows-NT)", :
[useragent = Mozilla/4.0 (compatible; Lotus-Notes/5.0; Windows-NT)]
:
[useragent = *Lotus-Notes*]
: "Lotus-Notes/4.5( Windows-NT )"
:
HTTP_USER_AGENT: : :
Nokia7110/1.0+(04.77) Nokia 7110 WAP phone [useragent= Nokia7110*]
Lotus-Notes/4.5 ( Windows-NT ) Lotus-Notes [useragent= Lotus-Notes*]
Mozilla/3.0 (compatible; AvantGo 3.2) AvantGo [useragent= *AvantGo*]
Mozilla/3.0 (compatible; WebCapture 1.0; Auto; Windows) Adobe Acrobat 4.0 [useragent= *WebCapture*]
18
-
7/23/2019 TypoScript
19/190
TypoScript - doc_core_tsref
WAP-:
WAP :
HTTP_USER_AGENT HTTP_USER_AGENT ()
ALAV UP/4.0.7Alcatel-BE3/1.0 UP/4.0.6cAUR PALM WAPPERDevice V1.12EricssonR320/R1Afetchpage.cgi/0.53Java1.1.8Java1.2.2m-crawler/1.0 WAPMaterna-WAPPreview/1.1.3MC218 2.0 WAP1.1Mitsu/1.1.AMOT-CB/0.0.19 UP/4.0.5jMOT-CB/0.0.21 UP/4.0.5mNokia-WAP-Toolkit/1.2Nokia-WAP-Toolkit/1.3beta
Nokia7110/1.0 ()Nokia7110/1.0 (04.67)Nokia7110/1.0 (04.67)Nokia7110/1.0 (04.69)Nokia7110/1.0 (04.70)Nokia7110/1.0 (04.71)Nokia7110/1.0 (04.73)Nokia7110/1.0 (04.74)Nokia7110/1.0 (04.76)Nokia7110/1.0 (04.77)Nokia7110/1.0 (04.80)Nokia7110/1.0 (30.05)Nokia7110/1.0
PLM's WapBrowserQWAPPER/1.0R380 2.0 WAP1.1SIE-IC35/1.0SIE-P35/1.0 UP/4.1.2aSIE-P35/1.0 UP/4.1.2aUP.Browser/3.01-IG01UP.Browser/3.01-QC31UP.Browser/3.02-MC01UP.Browser/3.02-SY01UP.Browser/3.1-UPG1UP.Browser/4.1.2a-XXXXUPG1 UP/4.0.7Wapalizer/1.0Wapalizer/1.1WapIDE-SDK/2.0; (R320s (Arial))
WAPJAG Virtual WAPWAPJAG Virtual WAPWAPman Version 1.1 beta:Build W2000020401WAPman Version 1.1Waptor 1.0WapView 0.00WapView 0.20371WapView 0.28WapView 0.37WapView 0.46WapView 0.47WinWAP 2.2 WML 1.1wmlbYourWap/0.91YourWap/1.16Zetor
language
:
[language = lang1, lang2, ...]
:
getenv(HTTP_ACCEPT_LANGUAGE) PHP. , * ( *en-us*), , HTTP_ACCEPT_LANGUAGE . , : de,en-us;q=0.7,en;q=0.3, *en-us* .
19
-
7/23/2019 TypoScript
20/190
TypoScript - doc_core_tsref
IP
:
[IP = ipaddress1, ipaddress2, ...]
:
getenv(REMOTE_ADDR) PHP.
"*" . , , .
:
IP-, "123":
[IP = 123.*.*.*]
[IP = 123]
IP-, "123" "192.168.1.34":
[IP = *.*.*.123][IP = 192.168.1.34]
hostname
:
[hostname = hostname1, hostname2, ...]
:
getenv(REMOTE_ADDR) PHP.
. *, , (, myhost.*.com => , myhost.*domain.com => )
hour
:
[hour = hour1, >hour2,
<
minute , "Hour" .
:
[minute = ...]
:
, 0-59
20
-
7/23/2019 TypoScript
21/190
TypoScript - doc_core_tsref
dayofweek , "Hour" .
:
[dayofweek = ...]
:
, 0 6.
dayofmonth , "Hour" .
:
[dayofmonth = ...]
:
, 1-31
month , "Hour" .
:
[month = ...]
:
, 1 12.
dayofyear , "Hour" . PHP, z date().
:
[dayofyear = ...]
:
, 0-364 ( 365)
year
, "Hour" . PHP, Y date().
:
[year = ...]
:
, 4- .
21
-
7/23/2019 TypoScript
22/190
TypoScript - doc_core_tsref
usergroup
:
[usergroup = group1-uid, group2-uid, ...]
:
( "gr_list").
"*".
:
[usergroup = *]
uid 1 / 2:
[usergroup = 1,2]
loginUser
:
[loginUser = fe_users-uid, fe_users-uid, ...]
:
uid fe_user. , "usergroup" , * .
:
( [usergroup = *] !):
[loginUser = *]
treeLevel
:
[treeLevel = levelnumber, levelnumber, ...]
:
. = 0 "" . = 1 .
:
- , 0 (), 2 .
[treeLevel = 0,2]
PIDinRootline
:
[PIDinRootline = pages-uid, pages-uid, ...]
:
PID (uid ) .
:
- , 34 36.
22
-
7/23/2019 TypoScript
23/190
TypoScript - doc_core_tsref
[PIDinRootline = 34,36]
PIDupinRootline
:[PIDupinRootline = pages-uid, pages-uid, ...]
:
, PIDinRootline, , uid .
compatVersion
:
[compatVersion = x.y.z]
: . TYPO3, , (Install Tool).
compatVersion , , TYPO3.
globalVars
:
[globalVar = var = value1, > value2, < value3, = value5, != value6, ...]
:
, "var1".
: :
=
>
<
=
!=
: url, ...&print=1
[globalVar = GP:print > 0]
, id 10:
[globalVar = TSFE:id >= 10]
, id 316:
[globalVar = TSFE:id != 316]
GPvar style:
[globalVar = GP:style = ]
, , Layout 1:[globalVar = TSFE:page|layout = 1]
{$constant_to_turnSomethingOn} 1, :
[globalVar = LIT:1 = {$constant_to_turnSomethingOn}]
23
-
7/23/2019 TypoScript
24/190
TypoScript - doc_core_tsref
globalString
:
[globalString = var1=value, var2= *value2, var3= *value3*, ...]
:
.
"*" PCRE ( "/").
:
HTTP_HOST "www.typo3.com":
[globalString = IENV:HTTP_HOST = www.typo3.com]
:
[globalString = IENV:HTTP_HOST = *typo3.com]
HTTP_HOST : "demo.typo3.com"
globalVar globalString:
, "|" ( ).
: $HTTP_POST_VARS["key"]["levels"] "HTTP_POST_VARS|key|levels"
, php.ini-. ( ).
, , HTTP_HOST getenv(), GET/POST t3lib_div::GP(). , TSFE. globalVar globalString, - "IENV"/ENV: , GP:, TSFE: LIT:, . / |. LIT literal, : ( | - )
: "IENV:" /, . t3lib_div::getIndpEnv(). "ENV:" getenv(), !
:
url, ...&print=1[globalVar = GP:print > 0]
192.168.
[globalString = IENV:REMOTE_ADDR = 192.168.*]
id 10:
[globalVar = TSFE:id > 10]
layout Layout 1:
[globalVar = TSFE:page|layout = 1]
test:
[globalString = TSFE:fe_user|user|username = test]
24
-
7/23/2019 TypoScript
25/190
TypoScript - doc_core_tsref
{$constant_to_turnSomethingOn} = 1:
[globalVar = LIT:1 = {$constant_to_turnSomethingOn}]
userFunc:
:
[userFunc = user_match(checkLocalIP)]
:
user_match checkLocalIP. , , . /.
:
localconf.php:
function user_match($cmd) {switch($cmd) {
case "checkLocalIP":if (strstr(getenv("REMOTE_ADDR"),"192.168")) {
return true;}
break;case "checkSomethingElse":
// ....break;
}}
, 192.168 - :
[userFunc = user_match(checkLocalIP)]
25
-
7/23/2019 TypoScript
26/190
TypoScript - doc_core_tsref
stdWrap TypoScript.
"HTML":
10 = HTML10.value = 10.value.case = upper
"10" .
stdWrap . , typo3/sysext/cms/tslib/class.tslib_content.php, stdWrap().
stdWrap :
. "data", "field", "current","cObject" ( !) , . :
10 = HTML10.value = 10.value.case = upper10.value.field = header
"10.value = " , "header" $cObj-> .
: : : :
:
setContentToCurrent
boolean , .
setCurrent string /stdWrap "" . - , . - .
lang
. , -> .language, , , stdWrap.
:config.language = depage.10 = TEXTpage.10.value = I am a Berliner!page.10.lang.de = Ich bin ein Berliner!
Ich bin... I am...
data getText
field fieldname $cObj->data[field]
: "title":".field = title"$cObj->data changes. "getText"/field!
: //. , nav_title //title, nav_title, , title.
current boolean "" (->split)
26
-
7/23/2019 TypoScript
27/190
TypoScript - doc_core_tsref
: : : :
cObject cObject -
numRows ->numRows
filelist dir /stdWrap . "|" :1: 2: ( ); , .3: : name, size, ext, date, mdate ( )4: : "r"5: fullpath_flag: , ,
preUserFunc
PHP- , , , . .postUserFunc
/ :
override string /stdWrap "override" - "" (), !
preIfEmptyListNum ( , "listNum" )
( , "listNum" )
ifEmpty string /stdWrap (), "ifEmpty". !
ifBlank string /stdWrap , "ifEmpty", strlen().
listNum int+calc+"last"
"," () item[value].
: "last" !
.splitChar (): , . splitChar - , ( "10" ...). : ," ().stdWrap ( stdWrap):stdWrap listNum...
: "item 1, item 2, item 3, item 4": "item 3":.listNum = last - 1
trim PHP- trim();
stdWrap ->stdWrap stdWraprequired boolean , -
(data, field, current,listNum, trim). ! "if"! , "".
if ->if if , stdWrap ""
fieldRequired
:
csConv string , (renderCharset).
27
-
7/23/2019 TypoScript
28/190
TypoScript - doc_core_tsref
: : : :
parseFunc object pathreference /
->parseFunc
.: ,
TypoScript. parseFunc , . , .
:parseFunc = < lib.parseFunc_RTEparseFunc.tags.myTag = TEXTparseFunc.tags.myTag.value = , !
HTMLparser boolean /->HTMLparser
HTML- . , ->HTMLparser.( ->HTMLparser)
split ->split
prioriCalc boolean , -+*/%^ + ().. () . double. .prioriCalc intval . , . , .
:100%7 = 2-5*-4 = 20+6^2 = 366 ^(1+1) = 36-5*-4+6^2-100%7 = 54-5 * (-4+6) ^ 2 - 100%7 = 98-5 * ((-4+6) ^ 2) - 100%7 = -22
char int chr(value).PHP: $content=chr(intval($conf["char"]);
intval boolean PHP intval(); .PHP: $content=intval($content);
date date-conf "UNIX-time". .$content=Date($conf["date"], $content);
timestamp:.value.field = tstamp.value.date =
strftime strftime-conf , "date" . "strftime-conf" PHP (strftime). , CONFIG. .
:.charset : , renderCharset. t3lib_cs.
28
-
7/23/2019 TypoScript
29/190
TypoScript - doc_core_tsref
: : : :
age boolean string
"1" ( ) (UNIX-time)
:"xx min", "xx hrs", "xx days" "xx yrs". -60 , 24 , 365 .
: , . :" min| hrs| days| yrs"
, . ". .
case case
"renderCharset".
bytes boolean ( ) :bytes, kb, mb
labels, . , -, - - (|) "". : " | K| M| G" ( ). :
bytes.labels = | K| M| G
substring [p1], [p2] [p1] [p2] PHP.
"renderCharset".
removeBadHTML boolean "" HTML , , HTML, XSS.
stripHtml boolean html-.
crop .: +/- () = / | [] | [: ]
:20 | ... => 20 . , 20 "..."-20 | ... => 20 . , 20 "..."20 | ... | 1 => 20 . , 20 "". , .
"renderCharset".
cropHTML . stdWrap.crop HTML. . ( ">") . stdWrap.crop .
, stdWrap.crop , stdWrap.cropHTML.
rawUrlEncode boolean PHP rawurlencode()
htmlSpecialChars boolean PHP htmlspecialchars(). .preserveEntities .
29
-
7/23/2019 TypoScript
30/190
TypoScript - doc_core_tsref
: : : :
doubleBrTag string .
br boolean PHP nl2br();
brTag string ASCII "10" (CR)encapsLines ->encapsLines chr(10) . , RTE.
keywords boolean "," ";" chr(10) (), .
innerWrap wrap /stdWrap ""
innerWrap2 wrap /stdWrap , .innerWrap ( )
fontTag wrap
addParams ->addParams , !
textStyle ->textStyle font
tableStyle ->tableStyle table
filelink ->filelink .
preCObject cObject cObject
postCObject cObject Cobject
wrapAlign align /stdWrap | , (align).
typolink ->typolink -
TCAselectItem. TCA.
.table (string):
.field (string):
.delimiter (string): .
: TCA select, .
spaceBefore int /stdWrap . clear-gif;
spaceAfter int /stdWrap . clear-gif;
space space /stdWrap [ ] | [ ]
:
.useDiv = 1 , clear gif style . ( spaceBefore spaceAfter.
wrap wrap /+.splitChar .splitChar -( | - )
noTrimWrap ""
val1 val2, ! ., "" "|" .
:|val1 |val2 |
wrap2 wrap /+.splitChar , .wrap ( )
30
-
7/23/2019 TypoScript
31/190
TypoScript - doc_core_tsref
: : : :
dataWrap {} {} getText getText.
: , , :
|
prepend cObject cObject ()
append cObject cObject ()
wrap3 wrap /+.splitChar , .wrap ( )
outerWrap wrap /stdWrap
insertData boolean , .dataWrap .
:
:10 = TEXT10.value = : {page:title}10.insertData = 1
offsetWrap x,y , x,y. cObject OTABLE.
.tableParams / .tdParams /stdWrap- tableParams/tdParams ( width=99%) . : OTABLE.
.stdWrap- stdWrap offsetWrap.
postUserFunc PHP , , . cObject USER.
: .
page = PAGEpage.typeNum=0includeLibs.something =media/scripts/example_callfunction.php
page.10 = TEXTpage.10 {value = Hello WorldpostUserFunc = user_reverseStringpostUserFunc.uppercase = 1
}
page.20 = TEXTpage.20 {value = Hello WorldpostUserFunc = user_various->reverseStringpostUserFunc.uppercase = 1postUserFunc.typolink = 11
}
postUserFuncInt function-name PHP , , .
. cObject USER_INT PHP_SCRIPT_INT. Jens Ellerbrock
31
-
7/23/2019 TypoScript
32/190
TypoScript - doc_core_tsref
: : : :
prefixComment string HTML ( "|"),
. insertData.
:prefixComment = 2 | CONTENT ELEMENT, uid:{field:uid}/{field:CType}
( 2+1 )( TYPO3 >3.6.0RC1)
editIcons string , , typo3/alt_doc.php .
. , cObj.: : [ , | ]
.beforeLastTag (1,0,-1): (1), HTML . -1, . (0), .
.styleAttribute (): style . , position:absolute, . : , frontEndEditIcons, .
.iconTitle (): title image.
.iconImg (HTML): HTML , . ( -... :-)
: , , ( !).editIcons = tt_content : header, bodytext
header_align date "", , , header. .editIcons = header[header_align|date], bodytext
editPanel boolean /editPanel
cObject EDITPANEL.
debug boolean HTMLSpecialChars() : , stdWrap , TypoScript. .
debugFunc boolean , debug(). . 2 , .
debugData boolean , $cObj->data, . ".field". .
[tsref:->stdWrap]
32
-
7/23/2019 TypoScript
33/190
TypoScript - doc_core_tsref
33
-
7/23/2019 TypoScript
34/190
TypoScript - doc_core_tsref
imgResourceimgResource , imgResource.
:
toplogo.gif 200
file = toplogo.giffile.width = 200
: :
: :
ext imageExtension /stdWrap
web
width pixels/stdWrap
, , "m", , / . ..
/.
, , "c", . , , /. . "c" (-100 ... +100), .
, - , m c!
: 120x80.:.width = 120c.height = 80c
100x100 .; , :.width = 100c-100.height = 100c
100x100 .; , :.width = 100c+30.height = 100c-25
height pixels/stdWrap
.width
params string ImageMagick:"-rotate 90" "-negate"
sample boolean , -sample, -geometry. Sample , .
alternativeTempPath
string . TYPO3_CONF_VARS[FE][allowedTempPaths]
frame int gif pdf ."" = ()
34
-
7/23/2019 TypoScript
35/190
TypoScript - doc_core_tsref
: :
: :
import path /stdWrap stdWrap
.: "image" :.import = uploads/pics/.import.field = image.import.listNum = 0
maxW pixels/stdWrap
maxH pixels/stdWrap
minW pixels/stdWrap
( maxW/maxH)
minH pixels/stdWrap ( maxW/maxH)
stripProfile boolean , IM stripProfile, . Install Tool. im_useStripProfileByDefault install tool, , stripProfile=0.
:10 = IMAGE10.file = fileadmin/images/image1.jpg10.file.stripProfile = 1
:( , )
m.mask imgResource , "m.bgImg". "m.mask" "m.bgImg" imgResource!: "m.mask" "m.bgImg" .
m.bgImg imgResource : "m.mask" "m.bgImg" .
m.bottomImg imgResource "m.bgImg" "m.bottomImg_mask", , imgResources "m.mask"."m.bottomImg" "m.bottomImg_mask" imgResource! imgResource.: "m.bottomImg" "m.bottomImg_mask"
.m.bottomImg_mask
imgResource (): "m.bottomImg" "m.bottomImg_mask" .
[tsref:->imgResource]
imageLinkWrap () "showpic.php", , , ..
md5- . "showpic.php", - . url .
PHP : $cObj->imageLinkWrap()
: : : :
file stdWrap .
35
-
7/23/2019 TypoScript
36/190
TypoScript - doc_core_tsref
: : : :
width int (1-1000) "m" , , width/height
height int (1-1000) ".width"
effects GIFBUILDER / . (stdgraphics)
:gamma=1,3 | sharpen=80 | solarize=70
sample boolean , -sample, -geometry. Sample , .
alternativeTempPath
. TYPO3_CONF_VARS[FE][allowedTempPaths]
title string (HTML)bodyTag body
wrap wrap , body
target -: : ".JSwindow"
JSwindow boolean , !
JSwindow.expand x,y x y .
JSwindow.newWindow
boolean !
JSwindow.altUrl string /stdWrap - , URL JS-, showpic.php, url !
JSwindow.altUrl_noDefaultParams
boolean , altUrl. , .
typolink ->typolink : - , imageLinkWrap !!!
stdWrap ->stdWrap stdWrap .
enable boolean /stdWrap !!!
0
[tsref:->imageLinkWrap]
:
1.imageLinkWrap = 11.imageLinkWrap {enable = 1bodyTag = wrap = | width = 800mheight = 600
JSwindow = 1JSwindow.newWindow = 1JSwindow.expand = 17,20
}
numRows
: : : :
table
36
-
7/23/2019 TypoScript
37/190
TypoScript - doc_core_tsref
:
: : :
select ->select .
selectFields count(*).
[tsref:->numRows]
select SQL-select .
. SQL-select tables.php ( ).
, "pidInList", pid, pid. , ! , .
: : : :
uidInList page_id
pidInList page_id/stdWrap
this
recursive int pidInList 0
orderBy SQL-orderBy "order by"! "sorting, title"
groupBy SQL-groupBy "group by"! "CType"
max int+calc+"total"
: "total" count(*)
begin int+calc+"total"
: "total" count(*)
where SQL-where "where"!, " (title LIKE '%SOMETHING%' AND NOTdoktype) "
andWhere SQL-where /stdWrap "AND"!, "NOT doktype".
languageField
string , , sys_language. , , , $GLOBALS[TSFE]->sys_language_uid( config.sys_language_uid)
selectFields string , count(*). *
joinleftjoinrightjoin
string JOIN , LEFT OUTER JOIN RIGHTOUTER JOIN .
[tsref:->select]
37
-
7/23/2019 TypoScript
38/190
TypoScript - doc_core_tsref
split .
, 0 (), SPLIT_COUNT.
:
TypoScript "bodytext" $cObj->data-array ( 2). ( 4). stdWrap ( 5), ( 6). , -gif ( 7). table ( 9)
1 20 = TEXT2 20.field = bodytext3 20.split {4 token.char = 105 cObjNum = 1
6 1.current = 17 1.wrap = | 8 }9 20.wrap = |
: : : :
token str /stdWrap ()
max int /stdWrap
min int /stdWrap
returnKey int /stdWrap ,
cObjNum cObjNum+optionSplit ("1,2,3,4"), .
1,2,3,4 ->CARRAY/stdWrap
, .: "current" . "stdWrap" /current.
( stdWrap):1.current = 11.wrap = |
( CARRAY):1 {10 = TEXT10.current = 110.wrap = | 20 = CLEARGIF20.height = 20
}
wrap wrap+optionSplit
.
[tsref:->split]
38
-
7/23/2019 TypoScript
39/190
TypoScript - doc_core_tsref
if , ( ). , .
, ".negate".: : :
:
isTrue str /stdWrap "".... ( )
isFalse str /stdWrap ""... ( )
isPositive int /stdWrap+ calc
,
isGreaterThan value /stdWrap , ".value"
isLessThan value /stdWrap , ".value"
equals value /stdWrap , ".value"
isInList value /stdWrap ,
".value". ".value" !!
value value /stdWrap "value" ( , )
negate boolean . , , !!
directReturn boolean , /. / TypoScript.
[tsref:->if]
:
"if" ! !"if" , (cObjects stdWrap)
:
. . , "isTrue = 1", . "isTrue.field = header", , "header" $cObj->data !
, ".value". :
.value = 10
.isGreaterThan = 11
, ".isGreaterThan" 10, .
:
.value = 10
.isGreaterThan = 11
.isTrue.field = header
.negate = 1
- isGreaterThan isTrue. (), , , , ".negate" !
:
GIFBUILDER "NEW" , "newUntil" , !
...30 = TEXT30.text = NEW!30.offset = 10,10
39
-
7/23/2019 TypoScript
40/190
TypoScript - doc_core_tsref
30.if {value.data = date: UisLessThan.field = newUntilnegate = 1
}...
40
-
7/23/2019 TypoScript
41/190
TypoScript - doc_core_tsref
typolink .
parseFunc, $cObj->_ (
)!:
::
:
extTarget target/stdWrap
. _top
fileTarget target .
target target/stdWrap
.
no_cache boolean/stdWrap
"&no_cache=1"
useCacheHash boolean , additionalParams -, url,
&cHash=ae83fd7s87. , , HTTP_GET_VARS, id,type,no_cache,ftu,cHash,MP. cHash , .[SYS][encryptionKey] .
additionalParams string /stdWrap url. , .
:'&print=1''&sword_list[]=word1&sword_list[]=word2'
: . SWORD_PARAMS :.additionalParams.data = register:SWORD_PARAMS
: !
addQueryString boolean QUERY_STRING. , ! ( ), "config.uniqueLinkVars" .
.method: GET POST, ( GET POST). , URL
, Real URL, . POST, GET , "POST,GET" "GET,POST". , .
.exclude: ( L cHash).
wrap wrap .
ATagBeforeWrap boolean , ".wrap", .
parameter string /stdWrap , . id , URL ,
e-mail . , , , . .
:
41
-
7/23/2019 TypoScript
42/190
TypoScript - doc_core_tsref
: :
: :
parameter = 51
. .
parameter = 51 _blank specialLink "Very important information" . 51, . class "specialLink" title "Very importantinformation". :
parameter = http://typo3.org/ - specialLink class. (-), (). (class ), .
parameter = [email protected] - - "Send a mail to main TYPO3contact" mailto title ( ).
, . , , . .
. @, email mailto. (.) (/), (//), ( http),
. , , , ( , , URL). , id , , .
, , . "", . :
typolink.parameter = 51,100,&test=1 - - "RSS Feed"
id , , "additionalParams".
section section. section , tt_content. , . section, . :
typolink.parameter = 51#345
51 tt_content 345
typolink.parameter = #top
, "top".
typolink (" ") . .
(extTarget, fileTarget target), parameter. - , , , (
42
-
7/23/2019 TypoScript
43/190
TypoScript - doc_core_tsref
: :
: :
), (-). ,
JavaScript, ( window.open). , , JavaScript. "JSwindow". :
typolink.parameter = 51 400x300
51 400 300 .
typolink.parameter = 51 400x300:resizable=0,location=1
, , .
Class link. "AtagParams". . (-) , ( ).
Title title link "title" "AtagParams". , . , title ("), .
: parseFunc, , :
typolink.parameter.data = parameters : allParams
title string /stdWrap A.
JSwindow_params string . :status=1,menubar=1,scrollbars=1,resizable=1,location=1,directories=1,toolbar=1
returnLast string "url", URL ($this->lastTypoLinkUrl). "target", . "", url !
section string /stdWrap , "#". - .
ATagParams -params/stdWrap
:class=board
linkAccessRestrictedPages
boolean , typolink-, , , .
43
-
7/23/2019 TypoScript
44/190
TypoScript - doc_core_tsref
: :
: :
userFunc function-name , typolink
. $content ( ) TYPE, TAG, url, targetParams ATagParams.TYPE : mailto, url, file, pageTAG , typolink. "TAG" :
.
[tsref:->typolink]
( TYPO3 4.1) . , id 34 , , ->typolink. , pressrelease, -, - , ? .
( parameter ->typolink) pressrelease:123:
TypoScript parameter ->typolink. pressrelease:123 parameter ->typolink, , pressrelease , , , .
pressrelease :
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['typolinkLinkHandler']['pressrelease'] ='EXT:pressrelease/class.linkHandler.php:&tx_linkHandler';
pressrelease/class.linkHandler.php tx_linkHandler, :
class tx_linkHandler {function main($linktxt, $conf, $linkHandlerKeyword, $linkHandlerValue, $link_param, &$pObj) {
$lconf = array();$lconf['useCacheHash'] = 1;$lconf['parameter'] = 34;$lconf['additionalParams'] = '&tx_pressrelease[showUid]='.rawurlencode($linkHandlerValue);
return $pObj->typoLink($linktxt, $lconf);}
}
, GET,&tx_pressrelease[showUid], parameter ->typolink 34, , ID 34 , pressrelease 123, &tx_pressrelease[showUid]=123. useCacheHash typolink, .
:
RealURL config.linkVars, ->typolink.
44
-
7/23/2019 TypoScript
45/190
TypoScript - doc_core_tsref
textStyle + .
: : : :
align.field align $cObj->
face.field string $cObj->
[1] = "Times New Roman";[2] = "Verdana,Arial,Helvetica,Sans serif";[3] = "Arial,Helvetica,Sans serif";
face.default string /stdWrap [default] = User defined
size.field string $cObj->
[1] = 1;[2] = 2;[3] = 3;[10] = "+1";[11] = "-1";
size.default string /stdWrap [default] =
color.field string $cObj->
"content.php"
color.default string /stdWrap [default] =
color.1color.2
string [1],[2] =
properties.field int $cObj->
:
bit 0: bit 1: bit 2: bit 3: ( )
, 5 ,
properties.default
int /stdWrap [default] = ( , ".field" - !)
altWrap wrap , font, , . . , : |
[tsref:->textStyle]
45
-
7/23/2019 TypoScript
46/190
TypoScript - doc_core_tsref
encapsLines:
::
:
encapsTagList , . .
:encapsTagList = div, p
, :
-
-
- -remapTag.[tagname]
string , .
, remapTags.P=DIV, :
-
-- -
([tagname] ).
addAttributes.
[tagname]
.
:addAttributes.P {style=padding-bottom:0px; margin-top:1px; margin-
bottom:1px;align=center
}
([tagname] ).
.setOnly =
exists : , blank : , ()
/.
removeWrapping boolen , "" .
:
-
-
- -:
- - - -
46
-
7/23/2019 TypoScript
47/190
TypoScript - doc_core_tsref
: :
:
:
wrapNonWrappedLi
nes
wrap
:.wrapNonWrappedLines =
|
:
-
:
-
innerStdWrap_all ->stdWrap , , .
encapsLinesStdWrap.[tagname] ->stdWrap .([tagname] ).
defaultAlign string /stdWrap , "" .encapsTagList, .bypassEncapsTagList .nonWrappedTag
nonWrappedTag tagname , . P. .wrapNonWrappedLines , .addAttributes defaultAlign. .
[tsref:->encapsLines]
:encapsLines {encapsTagList = div,premapTag.DIV = PwrapNonWrappedLines =
|
innerStdWrap_all.ifEmpty =}
, TYPO3 ,
.
Rich Text Editor:
1
[ !]
encapsLines , :
1
[ !]
. , ( ),
, . , , Rich Text Editor , , RTE - , .
:
# , nonTypoTagStdWrap :tt_content.text.20.parseFunc.tags.typolist.breakoutTypoTagContent = 1
47
-
7/23/2019 TypoScript
48/190
TypoScript - doc_core_tsref
tt_content.text.20.parseFunc.tags.typohead.breakoutTypoTagContent = 1# ...
typohead.tt_content.text.20.parseFunc.tags.typohead.stdWrap.wrap ># nonTypoTagStdWrap Ptt_content.text.20.parseFunc.nonTypoTagStdWrap >tt_content.text.20.parseFunc.nonTypoTagStdWrap.encapsLines {encapsTagList = div,premapTag.DIV = PwrapNonWrappedLines =
|
# addAttributes.P {style=margin:0 0 0;
}innerStdWrap_all.ifEmpty = innerStdWrap_all.textStyle < tt_content.text.20.textStyle
}# .tt_content.text.20.textStyle ># ...
...tt_content.text.20.wrap >tt_content
,
, RTE, .tableStyle table. table
: : : :
align align /stdWrap
border int /stdWrap
cellspacing int /stdWrap
cellpadding int /stdWrapcolor.field string $cObj->
color.defaultcolor.1color.2
string [default],[1],[2] =
params -
[tsref:->tableStyle]
:
styles.content.tableStyle {align.field = text_alignborder.field = table_bordercellspacing.field = table_cellspacingcellpadding = 1
color.field = table_bgColorcolor.default = {$styles.content.tableStyle.color}color.1 = {$styles.content.tableStyle.color1}color.2 = {$styles.content.tableStyle.color2}
}
addParams: : :
:
_offset int , , .1 , 2 , -1 , -2 .
1
48
-
7/23/2019 TypoScript
49/190
TypoScript - doc_core_tsref
: : : :
(array of strings) string /stdWrap .
( !), ! ( !), ( ) .
[tsref:->addParams]
:
page.13 = HTMLpage.13.value = page.13.value.addParams.bgcolor = {$menuCol.bgColor}page.13.value.addParams._offset = -1
:
( "bgColor" HTML cObject, .( !))
filelink "path".
, .
: : :
:path path /stdWrap : "uploads/media/"
icon boolean /stdWrap
icon_image_ext_list
list ofimageextensions
, .
iconCObject cObject cObject , IMAGE. , .
icon_link boolean .
labelStdWrap ->stdWrap stdWrap ( ), , A. , , ..
wrap wrap .
ATagBeforeWrap boolean , ".wrap", .
file ->stdWrap stdWrap ( ) A!
size boolean /stdWrap
49
-
7/23/2019 TypoScript
50/190
TypoScript - doc_core_tsref
: : : :
jumpurl boolean jumpurl .
, . , " " .
:.secure = [boolean]; ,
, jumpurl, . locationData url . , .htaccess, !
.secure.mimeTypes = mimetypes, [ext] =[mimetype]
:jumpurl.secure = 1 jumpurl.secure.mimeTypes = pdf=application/pdf,doc=application/msword
target target
stdWrap ->stdWrap
ATagParams -params/stdWrap
:class=board
removePrepend
edNumbers
boolean , 2
( _23).altTexttitleText
string /stdWrap ( "iconCObject" )
titltext , alttext. alttext, alttext
emptyTitleHandling
string keepEmpty title, useAlt alt.
useAlt
longdescURL string /stdWrap ( "iconCObject" )
"longdesc" (URL ).
[tsref:->filelink]
:
1.filelink {path = uploads/media/icon = 1icon.wrap = | size = 1size.wrap = | file.fontTag = {$styles.content.uploads.wrap}file.wrap = | jumpurl = 1target = _blank
stdWrap = | }
parseFunc , "makeLinks" ....
50
-
7/23/2019 TypoScript
51/190
TypoScript - doc_core_tsref
:
"bodytext" makelinks, - .
tt_content.text.default {20 = TEXT20.field = bodytext20.wrap = |
20.brTag =
20.parseFunc {makelinks = 1makelinks.http.keep = pathmakelinks.http.extTarget = _blankmakelinks.mailto.keep = pathtags {link = TEXTlink {current = 1typolink.extTarget = _blanktypolink.target={$cLinkTagTarget}typolink.wrap = |typolink.parameter.data = parameters : allParams}
typolist < tt_content.bullets.default.20typolist.trim = 1typolist.field >typolist.current = 1
}}
}
51
-
7/23/2019 TypoScript
52/190
TypoScript - doc_core_tsref
: : : :
externalBlocks /
+
, , parseFunc
. :.[tagname] { callRecursive = [boolean]; , parseFunc. , , stdWrap (. ). callRecursive.dontWrapSelf= [boolean]; , , parseFunc . callRecursive.alternativeWrap = , . callRecursive.tagStdWrap = ->stdWrap . stdWrap = ->stdWrap ( callRecursive). stripNLprev = [boolean];
. stripNLnext = [boolean]; . stripNL = [boolean]: .
HTMLtableCells = [boolean]; , .
# default , 1,2,3... .
HTMLtableCells.[default/1/2/3/...] { callRecursive = [boolean]; parseFunc. stdWrap = ->stdWrap . tagStdWrap = -> ->stdWrap
} HTMLtableCells.addChr10BetweenParagraphs =[boolean]; ,
chr(10), .}
: , . parseFunc(), / 0 ( ). .tt_content.text.20.parseFunc.externalBlocks {
blockquote.callRecursive=1blockquote.callRecursive.tagStdWrap.HTMLparser = 1blockquote.callRecursive.tagStdWrap.HTMLparser {tags.blockquote.fixAttrib.style.list = margin-
bottom:0;margin-top:0;tags.blockquote.fixAttrib.style.always=1
}blockquote.stripNLprev=1blockquote.stripNLnext=1
table.stripNL=1table.stdWrap.HTMLparser = 1table.stdWrap.HTMLparser {tags.table.overrideAttribs = border=0
cellpadding=2 cellspacing=1 style="margin-top:10px;margin-bottom:10px;"
tags.tr.allowedAttribs=0
tags.td.overrideAttribs = valign=topbgcolor="#eeeeee" style="font-family : Verdana,Geneva, Arial, Helvetica, sans-serif; font-size :10px;"}
}
52
-
7/23/2019 TypoScript
53/190
TypoScript - doc_core_tsref
: : : :
constants boolean , .
"###".:constants.EMAIL = [email protected](: TypoScript !) ###EMAIL### . .
short array of strings , , .
: T3 TYPO3 CMS, T3web - typo3.com.short {T3 = TYPO3 CMST3web = typo3
}
plainTextStdWrap ->stdWrap stdWrap , .
userFunc
, , . , , .postUserFunc stdWrap., user_
nonTypoTagStdWrap
->stdWrap .plainTextStdWrap. :.plainTextStdWrap ..nonTypoTagStdWrap ( ) TypoTag (.breakoutTypoTagContent TypoTag)
nonTypoTagUserFunc
.userFunc. ( nonTypoTagStdWrap), TypoTag-,
.userFunc .(: .breakoutTypoTagContent TypoTag, nonTypoTagContent)
sword wrap GET, sword_list[] . !: $GLOBALS["TSFE"]->no_cache==1
|
makelinks boolean /->makelinks
web, "http://" , "mailto:" .
tags ->tags , - .
allowTags , !
: allowTags, denyTags !!!
denyTags , !( "*" .) : allowTags, denyTags. denyTags "*" , !
: , , .allowTags = b,i,a,img.denyTags = *
if ->if "if" , , .
[tsref:->parseFunc]
53
-
7/23/2019 TypoScript
54/190
TypoScript - doc_core_tsref
makelinksmakelinks
http://www.webaddress.rld
mailto:[email protected]...
: :
: :
http.extTarget target _top
http.wrap wrap
http.ATagBeforeWrap boolean , http.wrap, .
http.keep :"scheme","path","query"
, .
:http://www.webaddress.rld/test/doc.php?id=3"": www.webaddress.rld"scheme": http://www.webaddress.rld"scheme,path":http://www.webaddress.rld/test/doc.php"scheme,path,query": http://www.webaddress.rld/test/doc.php?id=3
http.ATagParams -/stdWrap
:class=board
mailto.wrap wrap
mailto.ATagBeforeWr
ap
boolean , mailto.wrap,
.mailto.ATagParams -
/stdWrap
:class=board
[tsref:->makelinks]
54
-
7/23/2019 TypoScript
55/190
TypoScript - doc_core_tsref
tags: .
parseFunc.
: :
: :
... cObject+stripNL+breakoutTypoTagContent
... , . . ."current" , : "current" "".: $cObj-> parameters ( ):=> $cObj->parameters[color] = red
:$cObj->parameters[allParams]: , "color="red"'[cObject].stripNL: , parseFunc, .[cObject].breakoutTypoTagContent: , parseFunc, TypoTag, "".
:tags.bold = TEXTtags.bold {current = 1
wrap = | }tags.bold.stripNL = 1
[tsref:->tags]
:
4 : -, -, - . typolink . . gif-, 90x10 , , . . "fileadmin/"
tags {link = TEXTlink {current = 1typolink.extTarget = _blanktypolink.target={$cLinkTagTarget}typolink.wrap = |typolink.parameter.data = parameters : allParams
}
typolist < tt_content.bullets.default.20typolist.trim = 1typolist.field >typolist.current = 1
grafix = IMAGEgrafix {
file = GIFBUILDERfile {XY = 90,10100 = TEXT100.text.current = 1100.offset = 5,10100.nicetext = 1
55
-
7/23/2019 TypoScript
56/190
TypoScript - doc_core_tsref
}}pic = IMAGEpic.file.import = fileadmin/pic.file.import.current = 1
}
HTMLparser: : :
allowTags
tags.[tagname] boolean/->HTMLparser_tags
0 1, . ->HTMLparser_tags, .[tagname] .
localNesting ,
( ), nesting.
globalNesting (ibid) ( ), nesting global
rmTagIfNoAttrib (ibid) ( ), rmTagIfNoAttrib .
noAttrib (ibid) ( ), allowedAttribs ( ).
removeTags (ibid) ( ), .
keepNonMatchedTags boolean / protect (=1), , , $tags. "protect", < > , ! ,
, !htmlSpecialChars -1 / 0 / 1 / 2 , :
0 "" .1 , htmlspecialchar()( PHP & &...;)2 , 1, , & .-1 1 - < , " etc.
xhtml_cleaning boolean XHTML. ( ).
[page:->HTMLparser; tsref:->HTMLparser]
56
-
7/23/2019 TypoScript
57/190
TypoScript - doc_core_tsref
HTMLparser_tags: : :
overrideAttribs string ,
.allowedAttribs '0' () = , "[ ]"
= . / , .
fixAttrib.[attribute].set string .
fixAttrib.[attribute].unset boolean , .
fixAttrib.[attribute].default string , ( ).
fixAttrib.[attribute].always boolean , . .
fixAttrib.[attribute].trimfixAttrib.[attribute].intvalfixAttrib.[attribute].upperfixAttrib.[attribute].lower
boolean , PHP.
fixAttrib.[attribute].range [low],[high] ( ).
fixAttrib.[attribute].list list of values,trimmed
. , .
fixAttrib.[attribute].removeIfFalse boolean/blankstring
, "" . "blank", ( "" ).
fixAttrib.[attribute].removeIfEquals string , .
fixAttrib.[attribute].casesensitiveComp
boolean , .removeIfEquals .list . .
fixAttrib.
[attribute].prefixLocalAnchors
integer - # ( ),
. - 1 (t3lib_div::getIndpEnv('TYPO3_REQUEST_URL')) - 2 ( t3lib_div::getIndpEnv('TYPO3_SITE_URL'))
:
...fixAttrib.href.prefixLocalAnchors = 1
fixAttrib.[attribute].prefixRelPathWith
string - URL (http / ), .
:
...fixAttrib.src.prefixRelPathWith =http://192.168.230.3/typo3/32/dummy/
fixAttrib.[attribute].userFunc
.
:
...fixAttrib.href.userFunc = tx_realurl->test_urlProc
protect boolean , < >
remap string , .
rmTagIfNoAttrib boolean , , .
57
-
7/23/2019 TypoScript
58/190
TypoScript - doc_core_tsref
: : :
nesting , . . "" :"". "", nesting , "" . , , nesting, '' ''
[page:->HTMLparser_tags; tsref:->HTMLparser_tags]
58
-
7/23/2019 TypoScript
59/190
TypoScript - doc_core_tsref
Toplevel objects ( ): : :
:
types readonly ()type=99 .
resources readonly ().
sitetitle readonly ().
config ->CONFIG . , , .
constants ->CONSTANTS , , email.
. parseFunc.(: constants=1)
FEData ->FE_DATA , , ..
includeLibs php , TYPO3. PAGE, .
- TLO:
plugintt_*tempstyles
lib_GIFBUILDER
. , , :plugin , , ecommerce, .. static_template. !
tt_*, tt_content ( content (default)) .temp styles , , . "temp" / "styles" ! , .lib "" , TypoScript ( styles )
... PAGE
:page = PAGEpage.typeNum = 1
: PAGE:page frameset, frameset2 .top, left, menu, right, bottom, border .. . . "page" .
... (-) PAGE, . "temp" "styles"."tt_..." . , "tt_content" tt_content. cObject
"CONTENT".[tsref:(TLO)]
59
-
7/23/2019 TypoScript
60/190
TypoScript - doc_core_tsref
TLO TYPO3 , . . , tx_myext, tx_myext_pi1,
TypoScript plugin.tx_myext_pi1! USER USER_INT, 1 2. , ., :
: :
: :
userFunc USER / USER_INT
includeLibs USER / USER_INT
_CSS_DEFAULT_STYLE string CSS ,
. , , , . pagegen .
_DEFAULT_PI_VARS.[piVar-key]
string piVars, ( ) . $this->pi_setPiVarDefaults().
_LOCAL_LANG.[lang-key].[label-key]
string .
[tsref:plugin]
"CONFIG" typo3/sysext/cms/tslib/ $GLOBALS["TSFE"]->config["config"], , "debug" () $GLOBALS["TSFE"]->config["config"]["debug"].
: :
: :
defaultGetVars array GET. GET . , :test[var1] test.var1
:config.defaultgetVars {
test.var1.var2.p3 = 15L = 3
}
60
-
7/23/2019 TypoScript
61/190
TypoScript - doc_core_tsref
: :
: :
linkVars list HTTP_GET_VARS, TYPO3. ,
$GLOBALS["TSFE"]->linkVars rawurlencoded PHP.
, () . , . .
: [a]-[b] ; int ; [a]|[b]|[c] (
);
/[regex]/ - ( PCRE)
:config.linkVars = L, print
TYPO3 "&L=[L]&print=[ print]".
config.linkVars = L(1-3), print
, , &L=[ L] 1, 2 3.
uniqueLinkVars boolean , TYPO3 . , , .
1
MP_defaults string id , &MP=... .
:[id],[id],... : [MP-var] | [id],[id],... : [MP-var] | ...
:config.MP_defaults = 36,37,48 : 2-207
&MP=2-207 , 36,37 48
MP_mapRootPoints PID/string
ID, MP. , MP_defaults, MP, t3lib_tstemplate::linkData(). root ID, - ( !). ID ; , ID ( ID ) .
MP_disableTypolinkClosestMPvalue
boolean , typolink MP id.
61
-
7/23/2019 TypoScript
62/190
TypoScript - doc_core_tsref
: :
: :
renderCharset string , .
, , ( ). . locallang "renderCharset" .
render charset, - "metaCharset".
TYPO3_CONF_VARS['BE']['forceCharset'], "renderCharset". TYPO3_CONF_VARS['BE']['forceCharset'] TYPO3. ,
renderCharset metaCharset .
TYPO3_CONF_VARS[BE]
[forceCharset] , "iso-8859-1"
metaCharset string , ., :
-
7/23/2019 TypoScript
63/190
TypoScript - doc_core_tsref
: :
: :
sendCacheHeaders boolean , TYPO3 ,
. / TYPO3.
: *_INT *_EXT
( USER_INT)
, : [SYS_LASTCHANGED
id ] [,
]
Etag [md5 ] Cache-Control: max-age: [ expiretime]
Pragma: public
, , : Cache-Control: private
, , . , , , . , TYPO3.
: , , .Shift- , , TYPO3 . !
Ole Tange,www.forbrug.dk .
63
http://www.forbrug.dk/http://www.forbrug.dk/http://www.forbrug.dk/ -
7/23/2019 TypoScript
64/190
TypoScript - doc_core_tsref
: :
: :
sendCacheHeaders_onlyWhenLoginDeniedInBranc
h
boolean , ,
. .
: TYPO3 URL , , , . , - . URL ( ), ( , )!
- URL , ( realurl).
. ( "", " ") . , ;
, ! URL .
doctype string , ( XML). doctype :
"xhtml_trans" XHTML 1.0 ."xhtml_frames" XHTML 1.0 ."xhtml_strict" XHTML 1.0 doctype."xhtml_basic" XHTML ."xhtml_11" XHTML 1.1 ."xhtml_2" XHTML 2 ."none" .
, TYPO3 XHTML XML. , config.xhtmlDoctype (. ).
html "config.htmlTag_setParams" "config.htmlTag_langKey".
64
-
7/23/2019 TypoScript
65/190
TypoScript - doc_core_tsref
: :
: :
doctypeSwitch boolean / string , . CSS... , .
, JavaScript, TYPO3, :
page.headerData.1 = TEXTpage.headerData.1.value =alert(document.compatMode);
DOCTYPE, CSS1Compat. , . MSIE BackCompat - , , .
xhtmlDoctype string XHTML.
config.doctype,
config.xhtmlDoctype :
"xhtml_trans" XHTML 1.0 ."xhtml_frames" XHTML 1.0 ."xhtml_strict" XHTML 1.0 doctype."xhtml_basic" XHTML ."xhtml_11" XHTML 1.1 ."xhtml_2" XHTML 2 .
MathML 2.0 XHTML 1.1:
config.doctype ()config.xhtmlDoctype = xhtml_11
, config.doctype, - -
.
65
-
7/23/2019 TypoScript
66/190
TypoScript - doc_core_tsref
: :
: :
xmlprologue string ( ), XML 1.0,
( xhtml_11):
, :xml_10XML 1.0 ()xml_11XML 1.1
"none", XML . XML.
htmlTag_setParams string .
"config.doctype" XHTML, . .
: "none", .
:config.htmlTag_setParams =xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
htmlTag_langKey string "xml:lang" "lang" ( "config.doctype = xhtml*").
, IETF RFC 3066
:config.htmlTag_langKey = en-US
en
htmlTag_dir string ( , ).
"dir" .
:rtl = ( / )ltr = ( )
:config.htmlTag_dir = rtl
disableImgBorderAttr boolean 'border' , doctype xhtml_strict, xhtml_11 xhtml_2, 'disableImgBorderAttr'.
ATagParams -params TYPO3( )
: , :onFocus="blurLink(this)"
setJS_openPic boolean , JavaScript openPic
setJS_mouseOver boolean , JavaScript over() out().
66
http://www.ietf.org/rfc/rfc3066.txthttp://www.ietf.org/rfc/rfc3066.txthttp://www.ietf.org/rfc/rfc3066.txt -
7/23/2019 TypoScript
67/190
TypoScript - doc_core_tsref
: :
: :
removeDefaultJS boolean / string , JavaScript .
JavaScript blurLink .
: "external", JavaScript . "" .
(. >>Update wizard):compatibility mode < 4.0: 0compatibility mode >= 4.0: 1
:config.removeDefaultJS = externalconfig.removeDefaultJS = 1
minifyJS boolean inline externalized (.removeDefaultJS ) JavaScript . , . removeDefaultJS = external .
(. >>Update wizard):compatibility mode < 4.0: 0compatibility mode >= 4.0: 1
:config.minifyJS = 1
boolean ,
TYPO3 ,typo3temp/stylesheet_[hashstring].css, - . .
(. >>Update wizard):compatibility mode < 4.0: 0compatibility mode >= 4.0: 1
:config. = 1
meaningfulTempFilePrefix integer > 0, TYPO3
. GIFBUILDER ( GIFBUILDER TEXT ), ( ) ( ).
67
-
7/23/2019 TypoScript
68/190
TypoScript - doc_core_tsref
: :
: :
ftu boolean , "&ftu=...." GET-.
"&ftu=[hash]" . , cookies, , cookies. cookies , "ftu" , .
, , Teleport! , , ( - simulateStaticDocuments!)
, , cookies."ftu" fe_typo_user ("fe" "").
false
mainScript string "mainScript", .. TYPO3, . form , TYPO3 .
index.php
pageGenScript resource , index_ts.php , , .. index_ts.php-script,
. include_once., . $TSFE->content. typo3/sysext/cms/tslib/pagegen.php
: ,
$TYPO3_CONF_VARS["FE"]["noPHPscriptInclude"]=1;
localconf.php.
typo3/sysext/cms/tslib/pagegen.php
debug boolean , TypoScript . .
message_page_is_being_generated
string HTML , ., , 30 .
, . : ###TITLE###,###REQUEST_URI###
message_preview string HTML, !
68
-
7/23/2019 TypoScript
69/190
TypoScript - doc_core_tsref
: :
: :
message_preview_workspace
string HTML,
. sprintf() () ().
:config.message_preview_workspace = "%s" ( %s)!config.message_preview_workspace = %2$s "%1$s"!
locale_all string PHP: setlocale("LC_ALL", []); : deutsch, de_DE, danish, portuguese,spanish, french, norwegian, italian. www.php.net. linux, /usr/share/locale/
TSFE->localeCharset . stdWrap.strftime renderCharset .
: stdWrap/strftime , :locale_all = danishlocale_all = da_DK
sword_standAlone boolean parseFunc- (sword): , .
sword_noMixedCase boolean parseFunc- (sword): , , .
intTarget target . typolink, .
extTarget target . typolink, extTarget .
_top
fileTarget target . typolink, fileTarget .
69
http://www.php.net/http://www.php.net/http://www.php.net/ -
7/23/2019 TypoScript
70/190
TypoScript - doc_core_tsref
: :
: :
spamProtectEmailAddresses
"ascii" /-10 to 10
, email typolink ,
. , . , "-2", ASCII "-2". , JavaScript !( -5 1, >= 2 z |, TYPO3 )
, "ascii". "mailto:"
Unicode HTML. , , .
:mailto:[email protected] mailto:[email protected] , JavaScript!
spamProtectEmailAddresses_atSubst
string , (@). (at)
spamProtectEmailAddresses_lastDotSubst
string , email.: (dot)
: . (
-
7/23/2019 TypoScript
71/190
TypoScript - doc_core_tsref
: :
: :
compensateFieldWidth double FORMS cObject
. , "smallFormFields". Netscape , IE. , , , "0.6" netscape.
:[browser = netscape]config.compensateFieldWidth = 0.6
[global]
FORMS-cObject.
includeLibrary resource php.
incT3Lib_htmlmail boolean t3lib/class.t3lib_htmlmail.php
lockFilePath string "" . "filelist" stdWrap
fileadmin/
noScaleUp boolean , TypoScript. , . , . $this->mayScaleUp t3lib_stdgraphics ("gifbuilder").
USERNAME_substToken string ,
! , .
USERUID_substToken string , UID ! , . .
cache_period int, , . , (field="cache_timeout"), .
86400 (=24H)
cache_clearAtMidnight boolean .
false
no_cache boolean , . , . .
-
disableAllHeaderCode boolean , PAGE cObject (1,2,3,4...) PAGE. , cObject .... !!! , HTML . WAP-!
false
71
-
7/23/2019 TypoScript
72/190
TypoScript - doc_core_tsref
: :
: :
additionalHeaders strings dividedby "|"
HTML.
"|".:Content-type: text/vnd.wap.wml( WAP )
Content-type: image/gif | Expires: Mon, 26 Jul 199705:00:00 GMT( GIF )
Location: www.typo3.com( www.typo3.com)
, TYPO3 Content-Type ,
config.disableCharsetHeader (). , ( ). , Content-Length, ( ).
disablePageExternalUrl boolean , External Url jumpUrl TSFE. url, .
stat boolean . true
stat_typeNumList int/list , , sys_stat. , . "0,1",
. , .
0,1
stat_excludeBEuserHits boolean , TYPO3.
false
stat_excludeIPList REMOTE_ADDR IP-, . , 192.168.1.*
stat_mysql boolean MySQL sys_stat. false
stat_apache boolean "stat_apache_logfile" false
stat_apache_logfile filename , TYPO3 Apache. $TYPO3_CONF_VARS["FE"]
["logfile_dir"], . ( PATH_site) , , , TYPO3 ( , lockRootPath $TYPO3_CONF_VARS).
, PHPstrftime(). .
:config.stat_apache_logfile = typo3_%Y%m%d.log
(.typo3_20060321.log).
72
http://www.typo3.com/http://www.typo3.com/http://www.typo3.com/ -
7/23/2019 TypoScript
73/190
TypoScript - doc_core_tsref
: :
: :
stat_apache_pagenames string "pagename" apache. : "[path][title]--[uid].html"
:[title] = , 30 .[uid] = id[alias] = [type] = (typeNum)[path] = [request_uri] = REQUEST_URI (, RealUrl)
stat_apache_notExtended boolean , Apache.
stat_apache_noHost boolean , HTTP_HOST, , IP-.
stat_apache_niceTitle boolean / string , URL renderCharset ASCII ( => ae, => a, "alpha" => a), . ASCII , .
utf-8, UTF-8, , .
stat_apache_noRoot boolean , ( 0) . , , "" " ".
stat_titleLen int 1-100 , / .
20
stat_pageLen int 1-100 ( ) / .
30
73
-
7/23/2019 TypoScript
74/190
TypoScript - doc_core_tsref
: :
: :
simulateStaticDocuments boolean /string
, TYPO3 . Apache
mod_rewrite httpd.conf ".htaccess". .htaccess:
RewriteEngine OnRewriteRule ^[^/]*\.html$ index.php
, "*.html" index.php. , TYPO3 url html :
[title].[id].[type].html apache. [title], [type], , !.
:TYPO3 uid=23 type=1:
Startpage.23.1.html
TYPO3 alias = "start" type ( ):
start.html
(PATH_INFO): rewrite apache( Windows!) PATH_INFO PHP. . simulateStaticDocuments PATH_INFO
!: , .absRefPrefix
( Setup ):config.simulateStaticDocuments = PATH_INFO
- localconf.php.$TYPO3_CONF_VARS["FE"]["simulateStaticDocuments"] = 1; . - PATH_INFO
simulateStaticDocuments_addTitle
int , TYPO3 url , [simulateStaticDocuments_addTitle] .
:Startpage.23.1.html
, "23.1.html", .
simulateStaticDocuments
_noTypeIfNoTitle
boolean , type
, type . , .
:Startpage.23.0.html Startpage.23.0.html23.0.html 23.html ( , , )23.1.html 23.1.html
simulateStaticDocuments_replacementChar
string URL simulateStaticDocuments. , URL. TYPO3 4.0 .
(. >>Update wizard):compatibility mode < 4.0: _compatibility mode >= 4.0: -
74
-
7/23/2019 TypoScript
75/190
TypoScript - doc_core_tsref
: :
: :
simulateStaticDocuments_dontRedirectPathInfoErr
or
boolean PATH_INFO: PATH_INFO,
. PATH_INFO , index_ts.php . , , .
simulateStaticDocuments_pEnc
string .
: . Url Page_1.228.0.html, , url Page_1.228.0.html&tx_mininews_pi1[showUid]=2&cHash=b8d239c224. , URL
, ( ?). :
base64: :Page_1.228+B6JnR4X21pbmluZXdzX3BpMVtzaG93VWlkXT0yJmNIYXNoPWI4ZDIzOWMyMjQ_.0.html. base64 ( -...) HTML ( !). , . .
md5: :Page_1.228+M57867201f4a.0.html. ! 10- , . , . , , ! ( base64). , , URL , ( ).
: TYPO3 3.6.0 , .simulateStaticDocuments_pEnc_onlyP (.) , . .
simulateStaticDocuments_pEnc_onlyP
string , simulate_static_document, md5/base64 (. ).
:simulateStaticDocuments_pEnc_onlyP =tx_maillisttofaq_pi1[pointer], L, print
-> "pointer" "maillisttofaq" ( , ), "L" ( ) "print" (- ).
75
-
7/23/2019 TypoScript
76/190
TypoScript - doc_core_tsref
: :
: :
content_from_pid_allowOutsideDomain
boolean
. !
absRefPrefix string , TypoScript , . .
: , index.php, simulateStaticDocuments PATH_INFO. , , absRefPrefix url , http://www.typo3.com/. ,
, .
pageRendererTemplateFile
string , (t3lib_PageRenderer).
:pageRendererTemplateFile =fileadmin/test_pagerender.html
noPageTitle integer ( ) , 1. 2 . , XHTML, .
0
pageTitleFirst boolean ( ), .
titleTagFunction
. typoScript .
moveJsFromHeaderToFooter
boolean , Javascript ( ) HTML, body.
headerComment string TYPO3Content Management Framework . , ...
76
http://www.typo3.com/http://www.typo3.com/http://www.typo3.com/ -
7/23/2019 TypoScript
77/190
TypoScript - doc_core_tsref
: :
: :
language string . .stdWrap.lang.
:English (default) = [empty]Danish = dkGerman = deNorwegian = noItalian = it ....
, , . config_default.php 2- TYPO3.org. , , "locallang" .
TYPO3 TypoScript, _LOCAL_LANG / . locallang -.
language_alt string config.language (), , , . , pt - , , . , , , .
sys_language_uid int uid sys_language , , , , , . ->SELECT.
, , . , ( ), sys_language_mode - content_fallback.
77
-
7/23/2019 TypoScript
78/190
TypoScript - doc_core_tsref
: :
: :
sys_language_mode string . "[] ; []".
:
[default] ( Alternative Page Language) , , .
content_fallback- [ ] , . .. . , - , , "content_fallback ; 1,0" sys_language_uid 1, ,
(0)strict , . , > / ( , )
ignore , , .
sys_language_overlay boolean /keyword
, , CONTENT cObject languageField (0) , sys_language_uid / sys_language_mode. . , languageField transOrigPointerField [ctrl]$TCA. , l10n_mode $TCA.
> ; . Tsconfig , mod.web_layout.defLangBinding = 1.
:hideNonTranslated : , . -.
78
-
7/23/2019 TypoScript
79/190
TypoScript - doc_core_tsref
: :
: :
sys_language_softMergeIfNotBlank
string mergeIfNotBlank TypoScript.
: TCA l10n_mode, , . ; exclude mergeIfNotBlank ( TYPO3 Core API). (exclude) , . (mergeIfNotBlank), , . mergeIfNotBlank , .
:[]:[], []:[], []:[], ...
:config.sys_language_softMergeIfNotBlank =tt_content:image , tt_content:header
, header image , . image , .. () - () !
sys_language_softExclude string "exclude" l10n_mode TCA . , sys_language_softMergeIfNotBlank ( , !).
, , "sys_language_softMergeIfNotBlank".
typolinkCheckRootline boolean , typolink . , TYPO3 ( ) . ( ), , .
79
-
7/23/2019 TypoScript
80/190
TypoScript - doc_core_tsref
: :
: :
typolinkEnableLinksAcrossDomains
boolean , .
, :"http://domain.tld/index.php?id=12345" ( 12345 id). , , simulateStatic, :"http://domain.tld/PageTitle.12345.html" ( RTE). , , , :- (.. simulateStatic RealURL CoolURI )- (config.sys_language_XXX )-
"config.typolinkCheckRootline=1", . "config.TypolinkCheckRootline" TS .
: , , . -, . , .
0
typolinkLinkAccessRestrictedPages
integer (id) / NONE
, typolink, , . , id , . NONE , -- (, , ).
showAccessRestrictedPages ( )
:config.typolinkLinkAccessRestrictedPages = 29config.typolinkLinkAccessRestrictedPages_addParams =&return_url=###RETURN_URL###&pageId=###PAGE_ID###
id 29 GET URL id .
typolinkLinkAccessRestrictedPages_addParams
string typolinkLinkAccessRestrictedPages
notification_email_urlmode
string URL email, URL, 76 . , 76, all. , email . 76, 76 ,
GET ?RDCT=[md5/20] index.php, , (). all, http:// .
80
-
7/23/2019 TypoScript
81/190
TypoScript - doc_core_tsref
: :
: :
notification_email_encoding
string email(). quoted-
printable. , base64, base64.
:base64quoted-printable8bit
notification_email_charset string .
ISO-8859-1
admPanel boolean /->ADMPANEL
, .
: TSconfig!
.
: .
beLoginLinkIPList [IP-] REMOTE_ADDR IP- ( , *), typo3/ login .
: beLoginLinkIPList_login /beLoginLinkIPList_logout (. ) , !
beLoginLinkIPList_login HTML HTML , , 'beLoginLinkIPList'
:
beLoginLinkIPList_logout HTML HTML , ,
.
index_enable boolean .
index_externals boolean , , , .
index_descrLgd int , . .
200
index_metatags boolean . .
true
81
-
7/23/2019 TypoScript
82/190
TypoScript - doc_core_tsref
: :
: :
xhtml_cleaning string , XHTML .
, , .
:- (img,br,hr) "/>" - -?;- ;- ;- "alt" img, .
, XHTML:- Wellformedness: ;- name/id .- .
, img,big,small,sub,sup ;- CDATA, , (entitites);- XML declaration/ meta-http-equiv. (C.9);- UTF-8 XML!!!- ;- ( (entities), ) ! (&s;). . .
- - : selected="selected"
t3lib_parsehtml :
all = ;cached = , ;output = .
prefixLocalAnchors
, . , . (, realurl URL).
, xhtml_cleaning, .
disablePrefixComment boolean , prefixComment stdWrap, HTML.
baseURL string . URL, /.
:config.baseURL = http://typo3.org/sub_dir/
82
-
7/23/2019 TypoScript
83/190
TypoScript - doc_core_tsref
: :
: :
tx_[ ]_[*]
- . , ,
TypoScript, (, ).
:config.tx_realurl_enable = 1
[tsref:config/->CONFIG]
"CONSTANTS": : :
:
... string .
:.EMAIL = [email protected] , parseFunc constants=1, ###EMAIL### . ->parseFunc
[tsref:constants]
"PAGE" "id" "type".
"Id" uid ( ). .
"Type" . . type=0 ( ), , type=1 .
TYPO3 . , .
, type=1 . , .
- "page" (toplevel) .
PHPpagegen.php
: : : :
typeNum typeId . 0 PAGE, , (, )!
0
1,2,3,4... cObject
wrap wrap cObject.
stdWrap ->stdWrap cObject stdWrap.
bodyTagCObject cObject bodytag .bodyTag, .
bodyTag body :
headTag head, .
83
-
7/23/2019 TypoScript
84/190
TypoScript - doc_core_tsref
: :
: :
bodyTagMargins int body.
:.useCSS = 1 (boolean) BODY {margin: ...} , XHTML.
: 4 leftmargin="4" topmargin="4" marginwidth="4"marginheight="4" body.
bodyTagAdd string , body.
bgImg imgResource . body.
frameSet ->FRAMESET , - .
meta ->METAshortcutIcon resource Favicon . icon!
, favicons, , , .
: ".ico" (iconfile)
headerData ->CARRAY header. JavaScript, meta, . .
footerData ->CARRAY , headerData , , (
body).config ->CONFIG .
"config".