TYPO3 流体模板中的图像映射


image-map in TYPO3 fluid templates

我正在用extbase和fluid为TYPO3编写一个扩展。在这里,我想展示一个图像地图。这样做的问题是,流体引擎将我的 -tag 及其所有 标签包装在双引号中,并将它们输出在

标签中。

<map></map>

成为

<p class="bodytext">    &lt;map&gt;</p>
<p class="bodytext">    &lt;/map&gt;</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>

您可以使用 f:format.html viewhelper,而无需任何 parsefunc,例如

<f:layout name="Layout" />
<f:section name="MySection">
    <f:format.html parseFuncTSPath=""><map></map></f:format.html>
</f:section>

我真的不知道为什么你必须包装地图标签,但在我的测试用例中,它无需任何解析函数即可工作。

编辑:

<map></map> <!-- output <map></map> -->
<f:format.html parseFuncTSPath=""><map></map></f:format.html> <!-- output <map></map> -->
<f:format.html><map></map></f:format.html> <!-- output <p class="bodytext">&lt;map&gt;&lt;/map&gt;</p> -->