内容元素开头的链接 [英] Links at the start of content elements
问题描述
TYPO3在几乎每个元素的开头都添加了这些链接:
TYPO3 adds these links at the start of almost every element:
<a id="c1427"></a>
我猜数字是元素的UID.
where number is, I guess, UID of the element.
TYPO3如何呈现此链接,是否可以针对特定的FCE禁用它?
How TYPO3 render this link and is it possible to disable it for a specific FCE?
推荐答案
这取决于您的TYPO3版本.在4.5中,它是通过以下方式定义的:
It depends on your TYPO3 Version. In 4.5 it is defined via:
tt_content.stdWrap.innerWrap.cObject.default.10.value = <div id="c{field:uid}"
如果使用TS-Objectbrowser,则应在tt_content.stdWrap.*中找到它
If you use the TS-Objectbrowser, you should find it somewhere in tt_content.stdWrap.*
根据您使用的呈现方式,您可以添加if语句,例如:
Depending on the rendering you are using, you could be able to add an if statement like:
tt_content.stdWrap.innerWrap.cObject.default.10 {
# check the uid of the content element which is rendered
if.isInList.field = uid
# do not render if content element uid is 1,2 or 44
if.value = 1,2,44
}
当然,这取决于您的配置,因此您无法复制&粘贴.而且我没有测试此代码!但这应该显示出前进的方向:)
For sure, it depends on your configuration, so you cannot copy & paste. And i did not test this code! But it should show the way to go:)
这篇关于内容元素开头的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!