📄 setup.txt
字号:
# *****************# CType: table# *****************# Rendered by a PHP function specifically written to handle CE tables. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.phptt_content.table = COAtt_content.table { 10 = < lib.stdheader 20 = USER 20.userFunc = tx_cssstyledcontent_pi1->render_table 20.color { default = 1 = #EDEBF1 2 = #F5FFAA } 20.tableParams_0 { border = cellpadding = cellspacing = } 20.tableParams_1 { border = cellpadding = cellspacing = } 20.tableParams_2 { border = cellpadding = cellspacing = } 20.tableParams_3 { border = cellpadding = cellspacing = } 20.innerStdWrap.wrap = <p>|</p> 20.innerStdWrap.parseFunc = < lib.parseFunc 20.stdWrap { editIcons = tt_content: cols, bodytext, [layout], [table_bgColor|table_border|table_cellspacing|table_cellpadding] editIcons.beforeLastTag = 1 editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.table prefixComment = 2 | Table: }}# *****************# CType: uploads# *****************# Rendered by a PHP function specifically written to handle CE filelists. See css_styled_content/pi1/class.tx_cssstyledcontent_pi1.phptt_content.uploads = COAtt_content.uploads { 10 = < lib.stdheader 20 = USER 20.userFunc = tx_cssstyledcontent_pi1->render_uploads 20.color { default = 1 = #EDEBF1 2 = #F5FFAA } 20.tableParams_0 { border = cellpadding = cellspacing = } 20.tableParams_1 { border = cellpadding = cellspacing = } 20.tableParams_2 { border = cellpadding = cellspacing = } 20.tableParams_3 { border = cellpadding = cellspacing = } 20.linkProc { target = _blank jumpurl = {$styles.content.uploads.jumpurl} jumpurl.secure = {$styles.content.uploads.jumpurl_secure} jumpurl.secure.mimeTypes = {$styles.content.uploads.jumpurl_secure_mimeTypes} removePrependedNumbers = 1 iconCObject = IMAGE iconCObject.file.import.data = register : ICON_REL_PATH iconCObject.file.width = 150 } 20.stdWrap { editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size, imagecaption editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.filelist prefixComment = 2 | File list: }}# ******************# CType: multimedia# ******************tt_content.multimedia = COAtt_content.multimedia { 10 = < lib.stdheader 20 = MULTIMEDIA 20.file.field = multimedia 20.file.wrap = uploads/media/ 20.file.listNum = 0 20.params.field = bodytext 20.stdWrap { editIcons = tt_content: multimedia, bodytext editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.multimedia prefixComment = 2 | Multimedia element: }}# ******************# CType: mailform# ******************tt_content.mailform = COAtt_content.mailform.10 = < lib.stdheadertt_content.mailform.20 = FORMtt_content.mailform.20 { layout = <tr><td class="csc-form-labelcell">###LABEL###</td><td class="csc-form-fieldcell">###FIELD###</td></tr> labelWrap.wrap = <p class="csc-form-label">|</p> commentWrap.wrap = <p class="csc-form-comment">|</p> radioWrap.wrap = <span class="csc-form-radio">|</span><br /> REQ = 1 REQ.labelWrap.wrap = <p class="csc-form-label-req">|</p> COMMENT.layout = <tr><td colspan="2" class="csc-form-commentcell">###LABEL###</td></tr> target = {$styles.content.mailform.target} goodMess = {$styles.content.mailform.goodMess} badMess = {$styles.content.mailform.badMess} redirect.field = pages redirect.listNum = 0 recipient.field = subheader data.field = bodytext locationData = 1 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-mailform"> | </table> stdWrap { editIcons = tt_content: bodytext, pages, subheader editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.form prefixComment = 2 | Mail form inserted: }}# ******************# CType: search# ******************tt_content.search = COAtt_content.search.10 = < lib.stdheader# Result:tt_content.search.20 = SEARCHRESULTtt_content.search.20 { allowedCols = pages.title-subtitle-keywords-description : tt_content.header-bodytext-imagecaption : tt_address.name-title-address-email-company-city-country : tt_links.title-note-note2-url : tt_board.subject-message-author-email : tt_calender.title-note : tt_products.title-note-itemnumber languageField.tt_content = sys_language_uid renderObj = COA renderObj { 10 = TEXT 10.field = pages_title 10.htmlSpecialChars = 1 10.typolink { parameter.field = uid target = {$styles.content.searchresult.resultTarget} additionalParams.data = register:SWORD_PARAMS additionalParams.required = 1 additionalParams.wrap = &no_cache=1 } 10.htmlSpecialChars = 1 10.wrap = <h3 class="csc-searchResultHeader">|</h3> 20 = COA 20 { 10 = TEXT 10.field = tt_content_bodytext 10.stripHtml = 1 10.htmlSpecialChars = 1 } 20.stdWrap.crop = 200 | ... 20.stdWrap.wrap = <p class="csc-searchResult">|</p> } layout = COA layout { wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT### 10 = TEXT 10.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.resultRange 10.wrap = <td class="csc-searchResultRange"><p>|</p></td> 20 = TEXT 20.value = ###PREV### ###NEXT### 20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td> } noResultObj = COA noResultObj { 10 = TEXT 10.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.emptySearch 10.wrap = <h3 class="csc-noSearchResultMsg">|</h3> } next = TEXT next.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchResultNext prev = TEXT prev.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchResultPrev target = {$styles.content.searchresult.target} range = 20 stdWrap.prefixComment = 2 | Search result:}# Form:tt_content.search.30 < tt_content.mailform.20tt_content.search.30 { goodMess = {$styles.content.searchform.goodMess} redirect > recipient > data > dataArray { 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchWord 10.type = sword=input 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchIn 20.type = scols=select 20.valueArray { 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.headersKeywords 10.value = pages.title-subtitle-keywords-description:tt_content.header 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.pageContent 20.value = tt_content.header-bodytext-imagecaption } 30.type = stype=hidden 30.value = L0 40.type = submit=submit 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchButton } type.field = pages type.listNum = 0 locationData = HTTP_POST_VARS no_cache = 1 stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-searchform"> | </table> stdWrap { editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.search prefixComment = 2 | Search form inserted: }}# ******************# CType: login# ******************tt_content.login < tt_content.mailformtt_content.login.10 = < lib.stdheadertt_content.login.20 { goodMess = {$styles.content.loginform.goodMess} redirect > recipient > data > dataArray { 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:login.username 10.type = *user=input 20.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:login.password 20.type = *pass=password 30.type = logintype=hidden 30.value = login 40.type = submit=submit 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.php:login.login } type.field = pages type.listNum = 0 target = {$styles.content.loginform.target} locationData = 0 hiddenFields.pid = TEXT hiddenFields.pid { value = {$styles.content.loginform.pid} override.field = pages override.listNum = 1 } stdWrap.wrap = <table border="0" cellspacing="1" cellpadding="1" class="csc-loginform"> | </table> stdWrap { editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.login prefixComment = 2 | Login/Logout form: }}[loginUser = *]tt_content.login.20 { dataArray > dataArray { 10.label.data = LLL:EXT:css_styled_content/pi1/locallang.php:login.username 10.label.wrap = | <!--###USERNAME###--> 30.type = logintype=hidden 30.value = logout 40.type = submit=submit 40.value.data = LLL:EXT:css_styled_content/pi1/locallang.php:login.logout }}[global]# ******************# CType: splash# ******************# Deprecated element.# Still here for backwards compliance with plugins using the "text box" type.tt_content.splash = CASEtt_content.splash.key.field = splash_layouttt_content.splash.stdWrap { prefixComment = 2 | Textbox inserted (Deprecated)}tt_content.splash.default = COAtt_content.splash.default { 20 = CTABLE 20 { c.1 = < tt_content.text lm.1 = IMAGE lm.1.file { import = uploads/pics/ import.field = image import.listNum = 0 maxW.field = imagewidth maxW.ifEmpty = 200 } cMargins = 30,0,0,0 }}tt_content.splash.1 < tt_content.splash.defaulttt_content.splash.1.20.lm.1.file >tt_content.splash.1.20.lm.1.file = GIFBUILDERtt_content.splash.1.20.lm.1.file { XY = [10.w]+10,[10.h]+10 backColor = {$content.splash.bgCol} backColor.override.data = register:pageColor format = jpg 5 = BOX 5.dimensions = 3,3,[10.w],[10.h] 5.color = #333333 7 = EFFECT 7.value = blur=99|blur=99|blur=99|blur=99|blur=99|blur=99|blur=99 10 = IMAGE 10.file { import = uploads/pics/ import.field = image import.listNum = 0 maxW.field = imagewidth maxW.ifEmpty = 200 }}// The image frames are not available unless TypoScript code from styles.content.imgFrames.x is provided manually:tt_content.splash.2 < tt_content.splash.default#tt_content.splash.2.20.lm.1.file.m < styles.content.imgFrames.1tt_content.splash.3 < tt_content.splash.default#tt_content.splash.3.20.lm.1.file.m < styles.content.imgFrames.2// From plugin.postit1, if included:tt_content.splash.20 = < plugin.postit1# ****************# CType: menu# ****************tt_content.menu = COAtt_content.menu { 10 = < lib.stdheader 20 = CASE 20 { key.field = menu_type # "Menu of these pages" default = HMENU default.wrap = <div class="csc-menu csc-menu-def">|</div> default { special = list special.value.field = pages 1 = TMENU 1.NO.allWrap = <p>|</p> 1.NO.stdWrap.htmlSpecialChars = 1 1.target = {$content.pageFrameObj} } # "Menu of subpages to these pages" 1 < .default 1.special = directory 1.wrap = <div class="csc-menu csc-menu-1">|</div> # "Sitemap" 2 = HMENU 2.wrap = <div class="csc-menu csc-menu-2">|</div> 2 { 1 = TMENU 1.NO.allWrap = <p class="csc-sitemap csc-sitemap-level1">|</p> 1.NO.stdWrap.htmlSpecialChars = 1 1.target = {$content.pageFrameObj} 1.expAll = 1 2 < .1 2.NO.allWrap = <p class="csc-sitemap csc-sitemap-level2">|</p> 3 < .1 3.NO.allWrap = <p class="csc-sitemap csc-sitemap-level3">|</p> 4 < .1 4.NO.allWrap = <p class="csc-sitemap csc-sitemap-level4">|</p> 4.expAll = 0 } # "Section index (pagecontent w/Index checked)" 3 < styles.content.get 3.wrap = <div class="csc-menu csc-menu-3">|</div> 3.select.andWhere = sectionIndex!=0 3.select.pidInList.override.field = pages 3.renderObj = TEXT 3.renderObj { fieldRequired = header trim=1 field = header htmlSpecialChars = 1 wrap = <p class="csc-section">|</p> typolink.parameter.field = pid typolink.section.field = uid } # "Menu of subpages to these pages (with abstract)" 4 < .1 4.wrap = <div class="csc-menu csc-menu-4">|</div> 4.1.NO { allWrap = <p>|</p> after.required = 1 after.data = field : abstract // field : description // field : subtitle after.htmlSpecialChars = 1 after.wrap = </p><p class="csc-abstract">| } # "Recently updated pages" 5 < .default 5.wrap = <div class="csc-menu csc-menu-5">|</div> 5.special = updated 5.special { maxAge = 3600*24*7 excludeNoSearchPages = 1 } # "Related pages (based on keywords)" 6 < .default 6.wrap = <div class="csc-menu csc-menu-6">|</div> 6.special = keywords 6.special { excludeNoSearchPages = 1 } # "Menu of subpages to these pages + sections" 7 < .1 7.wrap = <div class="csc-menu csc-menu-7">|</div> 7.1.expAll = 1 7.2 < .7.1 7.2.sectionIndex = 1 7.2.sectionIndex.type = header 7.2.NO.allWrap = <p class="csc-section">|</p> } 20.stdWrap { editIcons = tt_content: menu_type, pages editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.menuSitemap prefixComment = 2 | Menu/Sitemap element: }}# ****************# CType: shortcut# ****************# Should be a complete copy from the old static template "content (default)"tt_content.shortcut = COAtt_content.shortcut { 20 = CASE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -