TYPO3 为tt_content示例TCAdefaults

TCAdefaults.tt_content {
imageborder = 1
imagewidth = 338
imageheight = 338
imagecols = 0
imageorient = 0
}

TYPO3 从“列表子页面”菜单中排除当前页面

tt_content.menu.20.1.excludeUidList = current

TYPO3 Bild-ObjektfüreigeneTypo3-Frontend-Plugins

# Bild-Objekt für eigene Typo3-Frontend-Plugins:
#
# Hinzufügen zu setup.txt (ext/ext_key/static/.../setup.txt)
#
# Wichtig ist das der ext_key ohne Unterstrichen angegeben wird:
# Beispiel: tx_ueupoverlackce_pi1

# Bild fuer p1
plugin.tx_EXTKEY_pi1 {
	bild = IMAGE
	bild {
		file = 
	}
}

# PHP
# $this->conf=$conf;
# ./.
# $conf["bild."]["file"] = 'uploads/pics/'.$image;
# $conf["bild."]["file."]["width"] = '100';
# $conf["bild."]["file."]["quality"] = '80';
# $conf["bild."]["file."]["format"] = 'png';
# $content .= $this->cObj->cObjGetSingle($conf["bild"], $conf["bild."]);

TYPO3 使用Slimbox显示随机图像

plugin.tx_ccrandomimage_pi2 {
  path = fileadmin/user_upload/images/gallery/
  renderObj >
  renderObj = COA
  renderObj {
    stdWrap.wrap = <p> | </p><p class="more"><a href="index.php?id=6">Gallery</a></p>
    10 = IMAGE
    10 {
      file = GIFBUILDER
      file {
        XY = 166, 120
        format = jpg
        quality = 80
        10 = IMAGE
        10.file = ###FILE_1###
        10.file.width = 166c
        10.file.height = 120c
      }
      stdWrap.outerWrap.cObject = COA
      stdWrap.outerWrap.cObject {
        10 = TEXT
        10.value = <a href="
        50 = IMG_RESOURCE
        50.file = GIFBUILDER
        50.file {
          XY = [10.w], [10.h]
          format = jpg
          10 = IMAGE
          10.file = ###FILE_1###
          10.file.width = 800m
          10.file.height = 600m
        }
        100 = TEXT
        100.value = " rel="lightbox"> | </a>
      }
    }   
  }
}

TYPO3 (TemplaVoila)获取FCE的ID

<TypoScript>
<![CDATA[
     10 = TEXT
     10.stdWrap.required = 1
     10.stdWrap.wrap = obj|
     10.data = register:tx_templavoila_pi1.parentRec.uid
]]
</TypoScript>

TYPO3 (TemplaVoila)在TypoScript中获得FCE的标题

<TypoScript>
<![CDATA[
	10 = TEXT
	10.stdWrap.required = 1
	10.stdWrap.wrap = <h2>|</h2>
	10.data = register:tx_templavoila_pi1.parentRec.header
]]>
</TypoScript>

TYPO3 调整后端RTE大小

options.RTESmallWidth = 725
options.RTESmallHeight = 600

TYPO3 TYPO3自定义标记扩展 - 用于lib.parseFunc的RTE和TypoScript设置的必要PageTS配置* - 对象

# the following Page-TSConfig should be added:

# RTE button settings: allow User plugin
RTE.default.showButtons := addToList(user)
RTE.default.hideButtons := removeFromList(user)

# allowed/denied tags
RTE.default.proc.allowTags := addToList(YOURTAG)
RTE.default.proc.denyTags := removeFromList(YOURTAG)

# HTMLparser_rte settings
RTE.default.proc.HTMLparser_rte = 1
# don't mask special html characters like < or >
RTE.default.proc.HTMLparser_rte.htmlSpecialChars = 0
# protect specific, user defined tags
RTE.default.proc.HTMLparser_rte.tags.YOURTAG.protect = 1

# entryHTMLparser_db settings
# special html characters like < or > will be stored unmasked (get masked by re-display in RTE)
RTE.default.proc.entryHTMLparser_db.htmlSpecialChars = -1
# protect specific tag
RTE.default.proc.entryHTMLparser_db.tags.YOURTAG.protect = 1
# protect non matching tags
RTE.default.proc.entryHTMLparser_db.keepNonMatchedTags = protect

# exitHTMLparser_db settings
RTE.default.proc.exitHTMLparser_db = 1
# protected non matched tags during fetching from database
RTE.default.proc.exitHTMLparser_db.keepNonMatchedTags = 1
# don't mask html characters like < or >
RTE.default.proc.exitHTMLparser_db.htmlSpecialChars = 0

# RTE plugin "user" settings
# define group name
RTE.default.userElements.10 = My Own Tags
# tag configuration
RTE.default.userElements.10.1 = My First Tag
RTE.default.userElements.10.1.description = The selected field gets wrapped with <YOURTAG>|</YOURTAG>
RTE.default.userElements.10.1.mode = wrap
RTE.default.userElements.10.1.content = <YOURTAG>|</YOURTAG>

# furthermore, we also need the following declaration in lib.parseFunc* objects in a template records setup field:

# common parsed elements (e.g.header fields)
lib.parseFunc.allowTags := addToList(YOURTAG)
lib.parseFunc.tags.YOURTAG = < plugin.tx_YOURTAGtag_pi1
lib.parseFunc.nonTypoTagStdWrap.HTMLparser.tags.YOURTAG = < plugin.tx_YOURTAGtag_pi1

# add custom tag to parse function of the RTE
lib.parseFunc_RTE.allowTags := addToList(YOURTAG)
lib.parseFunc_RTE.tags.YOURTAG = < plugin.tx_YOURTAGtag_pi1
# this line enables the "passthrough" of non-typo-tags to the HTML parser
# you can also specify an cObject directly, without the need of a plugin call
lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.tags.YOURTAG = < plugin.tx_YOURTAGtag_pi

TYPO3 I.R.R.E.-SnippetfürTCA

[...]
			'config' => array (
				'type' => 'inline',	
				'foreign_table' => 'tx_ext_table',	
				'foreign_field' => 'irre_uid',
				'minitems' => 0,
				'maxitems' => 1,
				'appearance' => array(
					'expandSingle' => 0,
					'newRecordLinkAddTitle' => 1
				)
			)
[...]

TYPO3 Automatisch TYPO3-Cache einer Seite leeren

TCEMAIN.clearCacheCmd = <UID>