📄 setup.txt
字号:
20.key.field = layout 20.0= RECORDS 20.0 { source.field = records tables = {$content.shortcut.tables} # THESE are OLD plugins. Modern plugins registers themselves automatically! conf.tt_content = < tt_content conf.tt_address = < tt_address conf.tt_links = < tt_links conf.tt_guest = < tt_guest conf.tt_board = < tt_board conf.tt_calender = < tt_calender conf.tt_rating < tt_rating conf.tt_products = < tt_products conf.tt_news = < tt_news conf.tt_poll = < plugin.tt_poll } 20.1= RECORDS 20.1 { source.field = records tables = {$content.shortcut.tables} conf.tt_poll = < plugin.tt_poll conf.tt_poll.code = RESULT,SUBMITTEDVOTE } 20.stdWrap { editIcons = tt_content: records editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.recordList prefixComment = 2 | Inclusion of other records (by reference): }}# ****************# CType: list# ****************# Should be a complete copy from the old static template "content (default)" (except "lib.stdheader")tt_content.list = COAtt_content.list { 10 = < lib.stdheader 20 = CASE 20.key.field = list_type 20 { # LIST element references (NOT copy of objects!) # THESE are OLD plugins. Modern plugins registers themselves automatically! 3 = CASE 3.key.field = layout 3.0 = < plugin.tt_guest 4 = CASE 4.key.field = layout 4.0 = < plugin.tt_board_list 4.1 = < plugin.tt_board_tree 2 = CASE 2.key.field = layout 2.0 = < plugin.tt_board_tree 5 = CASE 5.key.field = layout 5.0 = < plugin.tt_products 7 = CASE 7.key.field = layout 7.0 = < plugin.tt_calender 8 = CASE 8.key.field = layout 8.0 = < plugin.tt_rating 9 = CASE 9.key.field = layout 9.0 = < plugin.tt_news 11 = CASE 11.key.field = layout 11.0 = < plugin.tipafriend 20 = CASE 20.key.field = layout 20.0 = < plugin.feadmin.fe_users 21 = CASE 21.key.field = layout 21.0 = < plugin.feadmin.dmailsubscription } 20.stdWrap { editIcons = tt_content: list_type, layout, select_key, pages [recursive] editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.plugin prefixComment = 2 | Plugin inserted: }}# ****************# CType: script# ****************# OBSOLETE! Please make extensions instead. The "script" content element was meant for these custom purposes in the past. Today extensions will do the job better.tt_content.script = TEXTtt_content.script { value = prefixComment = 2 | Script element (Deprecated)}# ****************# CType: div# ****************tt_content.div = TEXTtt_content.div { value = prefixComment = 2 | Div element}# ****************# CType: html# ****************# This truely IS a content object, launched from inside the PHP class of course.# Should be a complete copy from the old static template "content (default)"tt_content.html = TEXTtt_content.html { field = bodytext editIcons = tt_content: pages editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.html prefixComment = 2 | Raw HTML content:}# ****************# Default error msg:# ****************tt_content.default = TEXTtt_content.default { field = CType wrap = <p style="background-color: yellow;"><b>ERROR:</b> Content Element type "|" has no rendering definition!</p> prefixComment = 2 | Unknown element message:}# *********************************************************************# ACCESSIBILTY MODE# *********************************************************************# Match TYPO3 3.9.0 and later[compatVersion = 3.9.0]# switch off <p>-Tags in table cellstt_content.table.20.innerStdWrap.wrap = |# change mailform to accesssible modett_content.mailform.20 { accessibility = 1 noWrapAttr=1 formName = mailform dontMd5FieldNames = 1 REQ = 1 layout = <div class="csc-mailform-field">###LABEL### ###FIELD###</div> COMMENT.layout = <div class="csc-mailform-label">###LABEL###</div> RADIO.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-radio">###FIELD###</span></div> LABEL.layout = <div class="csc-mailform-field">###LABEL### <span class="csc-mailform-label">###FIELD###</span></div> labelWrap.wrap = | commentWrap.wrap = | radioWrap.wrap = |<br /> REQ.labelWrap.wrap = | stdWrap.wrap = <fieldset class="csc-mailform"> | </fieldset> params.radio = class="csc-mailform-radio" params.check = class="csc-mailform-check" params.submit = class="csc-mailform-submit"}# accessible menutt_content.menu.20 { # "Menu of these pages" default.wrap = <ul class="csc-menu csc-menu-def">|</ul> default.1.NO.allWrap > default.1.NO.wrapItemAndSub = <li>|</li> default.1.NO.ATagTitle.field = description // title # "Menu of subpages to these pages" 1.wrap = <ul class="csc-menu csc-menu-1">|</ul> 1.1.NO.allWrap > 1.1.NO.wrapItemAndSub = <li>|</li> # "Sitemap - liststyle" 2 > 2 = HMENU 2 { wrap = <div class="csc-sitemap">|</div> 1 = TMENU 1 { noBlur=1 expAll=1 wrap = <ul>|</ul> NO { stdWrap.htmlSpecialChars = 1 wrapItemAndSub = <li>|</li> ATagTitle.field = description // title } } 2<.1 3<.1 4<.1 5<.1 6<.1 7<.1 } # "Section index (pagecontent w/Index checked - liststyle)" 3.wrap = <ul class="csc-menu csc-menu-3">|</ul> 3.renderObj.noBlur = 1 3.renderObj.wrap = <li class="csc-section">|</li> # "Menu of subpages to these pages (with abstract)" 4.wrap = <dl class="csc-menu csc-menu-4">|</dl> 4.1.NO { allWrap > linkWrap = <dt>|</dt> after.wrap = <dd>|</dd> ATagTitle.field = description // title } # "Recently updated pages" 5.wrap = <ul class="csc-menu csc-menu-5">|</ul> 5.1.NO.allWrap > 5.1.NO.wrapItemAndSub = <li>|</li> # "Related pages (based on keywords)" 6.wrap = <ul class="csc-menu csc-menu-6">|</ul> 6.1.NO.allWrap > 6.1.NO.wrapItemAndSub = <li>|</li> # "Menu of subpages to these pages + sections - liststyle" 7.wrap = <ul class="csc-menu csc-menu-7">|</ul> 7.1.NO.allWrap > 7.1.NO.wrapItemAndSub = <li>|</li> 7.2.wrap = <ul>|</ul> 7.2.NO.allWrap > 7.2.NO.wrapItemAndSub = <li class="csc-section">|</li> 7.2.NO.ATagTitle.field = description // title}# cObject: Imagett_content.image.20 = USERtt_content.image.20 { userFunc = tx_cssstyledcontent_pi1->render_textpic 1 { params > imageLinkWrap { bodyTag = <body style="margin:0; background:#fff;"> JSwindow.expand = } } caption.1.wrapAlign > caption.1.fontTag > captionAlign.field = imagecaption_position borderSpace = {$styles.content.imgtext.borderSpace} separateRows = {$styles.content.imgtext.separateRows} addClasses = addClassesImage = addClassesImage.ifEmpty = csc-textpic-firstcol csc-textpic-lastcol addClassesImage.override = csc-textpic-firstcol |*| |*| csc-textpic-lastcol addClassesImage.override.if { isGreaterThan.field = imagecols value = 1 } # imageStdWrap.dataWrap = <div class="csc-textpic-imagewrap" style="width:{register:totalwidth}px;"> | </div> imageStdWrapNoWidth.wrap = <div class="csc-textpic-imagewrap"> | </div> # if noRows is set, wrap around each column: imageColumnStdWrap.dataWrap = <div class="csc-textpic-imagecolumn" style="width:{register:columnwidth}px;"> | </div> layout = CASE layout { key.field = imageorient # above-center default = TEXT default.value = <div class="csc-textpic csc-textpic-center csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div> # above-right 1 = TEXT 1.value = <div class="csc-textpic csc-textpic-right csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div> # above-left 2 = TEXT 2.value = <div class="csc-textpic csc-textpic-left csc-textpic-above###CLASSES###">###IMAGES######TEXT###</div><div class="csc-textpic-clear"><!-- --></div> # below-center 8 = TEXT 8.value = <div class="csc-textpic csc-textpic-center csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div> # below-right 9 = TEXT 9.value = <div class="csc-textpic csc-textpic-right csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div> # below-left 10 = TEXT 10.value = <div class="csc-textpic csc-textpic-left csc-textpic-below###CLASSES###">###TEXT######IMAGES###</div><div class="csc-textpic-clear"><!-- --></div> # intext-right 17 = TEXT 17.value = <div class="csc-textpic csc-textpic-intext-right###CLASSES###">###IMAGES######TEXT###</div> # intext-left 18 = TEXT 18.value = <div class="csc-textpic csc-textpic-intext-left###CLASSES###">###IMAGES######TEXT###</div> # intext-right-nowrap 25 = TEXT 25.value = <div class="csc-textpic csc-textpic-intext-right-nowrap###CLASSES###">###IMAGES###<div style="margin-right:{register:rowWidthPlusTextMargin}px;">###TEXT###</div></div><div class="csc-textpic-clear"><!-- --></div> 25.insertData = 1 # intext-left-nowrap 26 = TEXT 26.value = <div class="csc-textpic csc-textpic-intext-left-nowrap###CLASSES###">###IMAGES###<div style="margin-left:{register:rowWidthPlusTextMargin}px;">###TEXT###</div></div><div class="csc-textpic-clear"><!-- --></div> 26.insertData = 1 } rendering { dl { imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"> | </div> noRowsStdWrap.wrap = oneImageStdWrap.dataWrap = <dl class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </dl> imgTagStdWrap.wrap = <dt> | </dt> editIconsStdWrap.wrap = <dd> | </dd> caption { required = 1 wrap = <dd class="csc-textpic-caption"> | </dd> } } ul { imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"><ul> | </ul></div> noRowsStdWrap.wrap = <ul> | </ul> oneImageStdWrap.dataWrap = <li class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </li> imgTagStdWrap.wrap = editIconsStdWrap.wrap = <div> | </div> caption.wrap = <div class="csc-textpic-caption"> | </div> } div { imageRowStdWrap.dataWrap = <div class="csc-textpic-imagerow" style="width:{register:rowwidth}px;"> | </div> noRowsStdWrap.wrap = oneImageStdWrap.dataWrap = <div class="csc-textpic-image###CLASSES###" style="width:{register:imagespace}px;"> | </div> imgTagStdWrap.wrap = <div> | </div> editIconsStdWrap.wrap = <div> | </div> caption.wrap = <div class="csc-textpic-caption"> | </div> } } renderMethod = dl}# cObject: Text with imagett_content.textpic.20 =< tt_content.image.20tt_content.textpic.20 { text.10 = COA text.10 { if.value = 24 if.isGreaterThan.field = imageorient 10 = < lib.stdheader 10.stdWrap.dataWrap = <div class="csc-textpicHeader csc-textpicHeader-{field:imageorient}">|</div> } text.20 = < tt_content.text.20 text.wrap = <div class="csc-textpic-text"> | </div>}plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE ( /* Captions */ DIV.csc-textpic-caption-c .csc-textpic-caption { text-align: center; } DIV.csc-textpic-caption-r .csc-textpic-caption { text-align: right; } DIV.csc-textpic-caption-l .csc-textpic-caption { text-align: left; } /* Needed for noRows setting */ DIV.csc-textpic DIV.csc-textpic-imagecolumn { float: left; display: inline; } /* Border just around the image */ {$styles.content.imgtext.borderSelector} { border: {$styles.content.imgtext.borderThick}px solid {$styles.content.imgtext.borderColor}; padding: {$styles.content.imgtext.borderSpace}px {$styles.content.imgtext.borderSpace}px; } DIV.csc-textpic-imagewrap { padding: 0; } DIV.csc-textpic IMG { border: none; } /* DIV: This will place the images side by side */ DIV.csc-textpic DIV.csc-textpic-imagewrap DIV.csc-textpic-image { float: left; } /* UL: This will place the images side by side */ DIV.csc-textpic DIV.csc-textpic-imagewrap UL { list-style: none; margin: 0; padding: 0; } DIV.csc-textpic DIV.csc-textpic-imagewrap UL LI { float: left; margin: 0; padding: 0; } /* DL: This will place the images side by side */ DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image { float: left; } DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DT { float: none; } DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DD { float: none; } DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DD IMG { border: none; } /* FE-Editing Icons */ DL.csc-textpic-image { margin: 0; } DL.csc-textpic-image DT { margin: 0; display: inline; } DL.csc-textpic-image DD { margin: 0; } /* Clearer */ DIV.csc-textpic-clear { clear: both; } /* Margins around images: */ /* Pictures on left, add margin on right */ DIV.csc-textpic-left DIV.csc-textpic-imagewrap .csc-textpic-image, DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap .csc-textpic-image, DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap .csc-textpic-image { display: inline; /* IE fix for double-margin bug */ margin-right: {$styles.content.imgtext.colSpace}px; } /* Pictures on right, add margin on left */ DIV.csc-textpic-right DIV.csc-textpic-imagewrap .csc-textpic-image, DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap .csc-textpic-image, DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap .csc-textpic-image { display: inline; /* IE fix for double-margin bug */ margin-left: {$styles.content.imgtext.colSpace}px; } /* Pictures centered, add margin on left */ DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image { display: inline; /* IE fix for double-margin bug */ margin-left: {$styles.content.imgtext.colSpace}px; } DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image .csc-textpic-caption { margin: 0; } DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image IMG { margin: 0; } /* Space below each image (also in-between rows) */ DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image { margin-bottom: {$styles.content.imgtext.rowSpace}px; } DIV.csc-textpic-equalheight DIV.csc-textpic-imagerow { margin-bottom: {$styles.content.imgtext.rowSpace}px; display: block; } DIV.csc-textpic DIV.csc-textpic-imagerow { clear: both; } /* No margins around the whole image-block */ DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-firstcol { margin-left: 0px !important; } DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-lastcol { margin-right: 0px !important; } /* Add margin from image-block to text (in case of "Text w/ images") */ DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap, DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap { margin-right: {$styles.content.imgtext.textMargin}px !important; } DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap, DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap { margin-left: {$styles.content.imgtext.textMargin}px !important; } /* Positioning of images: */ /* Above */ DIV.csc-textpic-above DIV.csc-textpic-text { clear: both; } /* Center (above or below) */ DIV.csc-textpic-center { text-align: center; /* IE-hack */ } DIV.csc-textpic-center DIV.csc-textpic-imagewrap { margin: 0 auto; } DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image { text-align: left; /* Remove IE-hack */ } DIV.csc-textpic-center DIV.csc-textpic-text { text-align: left; /* Remove IE-hack */ } /* Right (above or below) */ DIV.csc-textpic-right DIV.csc-textpic-imagewrap { float: right; } DIV.csc-textpic-right DIV.csc-textpic-text { clear: right; } /* Left (above or below) */ DIV.csc-textpic-left DIV.csc-textpic-imagewrap { float: left; } DIV.csc-textpic-left DIV.csc-textpic-text { clear: left; } /* Left (in text) */ DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap { float: left; } /* Right (in text) */ DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap { float: right; } /* Right (in text, no wrap around) */ DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap { float: right; clear: both; } /* Hide from IE5-mac. Only IE-win sees this. \*/ * html DIV.csc-textpic-intext-right-nowrap .csc-textpic-text { height: 1%; } /* End hide from IE5/mac */ /* Left (in text, no wrap around) */ DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap { float: left; clear: both; } /* Hide from IE5-mac. Only IE-win sees this. \*/ * html DIV.csc-textpic-intext-left-nowrap .csc-textpic-text { height: 1%; } /* End hide from IE5/mac */)[END]# TYPO3 CVS ID: $Id: setup.txt 2600 2007-10-20 21:41:31Z ingmars $
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -