Links at the start of content elements

南楼画角 提交于 2019-12-24 17:53:37

问题


TYPO3 adds these links at the start of almost every element:

<a id="c1427"></a>

where number is, I guess, UID of the element.

How TYPO3 render this link and is it possible to disable it for a specific FCE?


回答1:


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}"

If you use the TS-Objectbrowser, you should find it somewhere in tt_content.stdWrap.*

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:)




回答2:


I think your problem is in tt_content.stdWrap.prepend that is different for any languages different from default language.

Try to put this typoscript in your template:

tt_content.stdWrap.prepend >




回答3:


tt_content.stdWrap.wrap = <div class="content-element">|</div>


来源:https://stackoverflow.com/questions/12265957/links-at-the-start-of-content-elements

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!