我正在用 extbase 和流体编写 TYPO3 的扩展。在这里,我想展示一个图像地图。问题在于,流体引擎将我的 <map>-tag 及其所有 <area>-tags 用双引号括起来,并在 <p>-tag 中输出它们。
<map></map>
变成
<p class="bodytext"> <map></p>
<p class="bodytext"> </map></p>
我已经尝试将其包装在以下视图助手中
<f:format.{raw,html,...}>
<![CDATA[]]>
以前有人遇到过这个问题吗?
编辑:
<f:layout name="Default" />
This Template is responsible for creating a table of domain objects. If
you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml: Resources: Private:
Templates: List.html: keep Otherwise your changes will be overwritten
the next time you save the extension in the extension builder
<f:section name="main">
<f:image src="{f:uri.resource(path:'Images/Basemap.png')}"
alt="Basemap" class="map" id="map" usemap="#StateLocations" />
<table id="test"></table>
<f:format.raw>
<div id="themap"></div>
</f:format.raw>
<f:flashMessages />
<f:format.raw>
<map></map>
</f:format.raw>
</f:section>
编辑2:
<div class="tx-myext">
<f:render section="main" />
</div>