jweiland-net / maps2

This TYPO3 extension enables you to implement Google Maps on your website.
GNU General Public License v2.0
13 stars 16 forks source link

Use InfoWindowContent.html in InfoWindowContent.php (backend preview) #286

Closed derBoogie closed 1 year ago

derBoogie commented 1 year ago

I've overwritten the InfoWindowContent.html because to remove titleWrapper and addressWrapper, to show only the info window content in frontend maps. To make the backend preview fit, the InfoWindowContent.html should be used in InfoWindowContent.php.

sfroemkenjw commented 1 year ago

Hello @derBoogie

I can not use the html file for backend form rendering. This part is called FieldWizard which has just a limited amount of allowed tags. Here are the two lines of TYPO3 backend PHP source:

$allowedTags = '<a><br><br/><div><em><i><p><strong><span><code>';
if (strip_tags($informationResult['html'], $allowedTags) !== $informationResult['html']) {

So, if you add an image or other elements, it will never display the same like in frontend. In your case it may make more sense to disable the wizard maps2InfoWindowContent in TCA/Overrides of your extension.

Stefan