Typo3: adds anchor but don't know why

Deadly 提交于 2019-12-01 00:51:38

The default behaviour should be that the anchor is added even in the default language. However, I've just checked and realized that there might be a bug in TYPO3 for which reason I'm actually using different setup.

I think you have 2 options.

a) Unset the anchor completely:

tt_content.stdWrap.prepend >

b) Modify the anchor this way:

tt_content.stdWrap.prepend {
  if >
  dataWrap = <a id="c{field:_LOCALIZED_UID//field:uid}" class="anchor"></a>
}

This should give you an anchor consistently in both default and localized version. Then you should set CSS for a.anchor so that it doesn't screw your layout. I don't know what kind of layout problems it gives so I currently cannot give you more advice on that.

NOTE: The solution works in TYPO3 4.5, might work in later versions but is reported not to work in version 9.x.x and later.

I used tt_content.stdWrap.prepend > to remove the anchors, but was still getting them.

Looking a tt_content, anchors are also prepended in to content elements with "no frame" (section_frame = 66).

This should get rid of them:

tt_content.stdWrap.innerWrap.cObject.66.10 >

(Typo3 v4.6)

I use following to get rid of unwanted anchor tag

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