简体   繁体   English

禁用基类TYPO3中的换行

[英]Disable wrap in base class TYPO3

I have installed plugin news. 我已经安装了插件新闻。 It is generating such html: 它正在生成这样的html:

<div id="c69" class="csc-default">
  <div class="news">
    ....
  </div>
</div>

But I want remove this wrapping. 但我要删除此包装。 I don't have it in my templates. 我的模板中没有它。 They are generated automatic. 它们是自动生成的。 How can I do it? 我该怎么做? Typo3 version 7.6.6 Typo3版本7.6.6

<div id="c69" class="csc-default">

comes form the ext. 来自分机。 css_styled_content . css_styled_content You can rewrite this so you don't have this wrapping. 您可以重写此代码,这样就无需包装。 Could be done global or per page. 可以全局或每页完成。

if you use tt_news, the wrapping for the ext. 如果使用tt_news,则为ext包装。 comes from the wrapInBaseClass() 来自wrapInBaseClass()

if you use tx_news, you will find the wrapping in the templates of the extension, probably in the Layout template 如果使用tx_news,则会在扩展程序的模板中找到包装,可能在布局模板中找到

You can disable using TypoScript 您可以禁用使用TypoScript

tt_content.stdWrap.innerWrap > tt_content.stdWrap.innerWrap>

Put above line in your Template > root template > Setup 在模板>根模板>设置中的上方
It'll give you clean HTML output as your layout without default wrap of css_styled_content. 它将为您提供干净的HTML输出作为布局,而无需使用css_styled_content的默认包装。 or if you see classes with extension related then must be from extension which you used. 或者如果您看到与扩展相关的类,则必须来自您使用的扩展。 In extBase structure you'll find ext_key/Resources/Private/Layouts and Templates. 在extBase结构中,您将找到ext_key / Resources / Private / Layouts和Templates。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM