0

i'm writing a extension for TYPO3 with extbase and fluid. Herein I want to show an image-map. The problem with that is, that the fluid engine wraps my <map>-tag with all its <area>-tags in double-quotes and outputs them within a <p>-tag.

<map></map>

becomes

<p class="bodytext">    &lt;map&gt;</p>
<p class="bodytext">    &lt;/map&gt;</p>

i allready tried wrapping it within the following view-helpers

<f:format.{raw,html,...}>
<![CDATA[]]>

does anyone had this problem before?

Edit:

<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>

Edit2:

<div class="tx-myext">
 <f:render section="main" />
</div>
Daniel
  • 6,916
  • 2
  • 36
  • 47
stffn
  • 35
  • 2
  • No, i use them within the extension-template, in my case Resources/Private/Templates/Location/ShowMap.html. – stffn Oct 23 '13 at 15:06
  • I edited my original post. The
    is there for a very ugly js-hack with which i am not very lucky...
    – stffn Oct 23 '13 at 15:38
  • I attached it, not very complex... It was generated by the extension builder extension. – stffn Oct 23 '13 at 17:39
  • Weird, have no idea, it looks like you were wrapping whole section with f:format.html, but you don't... can't help you, sry. – biesior Oct 23 '13 at 19:09
  • Interestingly it is only within the extension template. If i put the map in the main template, it goes right into the site... – stffn Oct 24 '13 at 09:11

1 Answers1

0

You can use the f:format.html viewhelper without any parsefunc like

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

I dont really know why you have to wrap the map-tag, but in my testcase it works without any parsefunction.

Edit:

<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> -->
freshp
  • 525
  • 5
  • 20
  • Same problem.... can you paste your layout- and template-file, so i can test it on my system? – stffn Oct 24 '13 at 08:50
  • which fluid version do you use? – freshp Oct 24 '13 at 09:54
  • The one who is bundeled with typo3 6.1.5, which is, accordingly to the extension manager, version 6.1.0. – stffn Oct 24 '13 at 11:06
  • i use the same versions and everything works very well. my last idea is to delete all caches, or you have some overwrites of the *stdWrap* – freshp Oct 24 '13 at 11:30
  • Not from what i am seeing... Neither within my typo3-template, nor in my extensions ext_typoscript_{constants,setup}.txt. I'm deleting the caches all the time, so i don't think that this is the problem... – stffn Oct 25 '13 at 08:09
  • You can also check, if the problem ist the same in a blank new typo3. – freshp Oct 25 '13 at 09:16