创建TYPO3扩展/插件 HTML页面中的标签

问题描述 投票:1回答:3

[我使用扩展程序生成器创建了扩展程序和插件,该扩展程序将一些HTML代码生成到文件fileadmin/templates/List.html。此内容以以下形式进入我的网页的template.html中

<f:section name="some-content">
<f:format.html> {some_content} </f:format.html> 
</f:section>

some_content来自我的Typoscript模板

some_content < styles.content.get
some_content.select.where = colPos = 1

该插件是从后端布局附加的

问题是,在我的HTML页面中,我在<p>标签中获得了插件信息

<p class="bodytext">&nbsp;</p>
<p class="bodytext">    <!--  CONTENT ELEMENT, uid:260/list [begin] --></p>
<p class="bodytext">&nbsp;</p><div id="c260" class="csc-default"><p class="bodytext">&nbsp;</p>
<p class="bodytext">        <!--  Plugin inserted: [begin] --></p>
<p class="bodytext">&nbsp;</p>
<p class="bodytext">        <!--  Plugin inserted: [end] --></p>
<p class="bodytext">&nbsp;</p></div><p class="bodytext">    <!--  CONTENT ELEMENT, uid:260/list [end] --></p>
<p class="bodytext">&nbsp;</p>

而这弄乱了我的CSS。

html plugins typo3 fluid
3个回答
1
投票
在根的模板脚本中添加以下行

在常量中:

content.RTE_compliant = 0

在设置中:

tt_content.stdWrap.dataWrap > lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines>


0
投票
[您想使用<f:format.html>时,我还是希望仍使用它,但要使用parseFunc属性。

<f:format.html parseFuncTSPath="">{some_content}</f:format.html>

您可以在其中分配解析功能。 (空值将忽略标准行为和P标签的默认显示。
© www.soinside.com 2019 - 2024. All rights reserved.