Search code examples
typo3typoscripttemplavoila

Links at the start of content elements


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?


Solution

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