Browse code

Since Oxid strips all whitespaces in head scripts, we have to append our own block to base.tpl

Benjamin Roth authored on08/04/2019 11:40:30
Showing2 changed files
... ...
@@ -17,6 +17,7 @@ PHP > 5.3
17 17
 Installation
18 18
 ---- 
19 19
 Install files in your oxid modules/ folder. Alternatively you can install them in your modules/esales/ vendor folder.
20
+Add [{block name="es_analytics_code"}][{/block}] to html head in base.tpl.
20 21
 
21 22
 
22 23
 License
... ...
@@ -53,7 +53,7 @@ $aModule = array(
53 53
 //		'es_article_nutritionfacts.tpl'    => 'esales/es_analytics/views/admin/tpl/es_article_nutritionfacts.tpl',
54 54
 	),
55 55
     'blocks' => array(
56
-        array('template' => 'layout/base.tpl', 'block' => 'head_css', 'file' => 'views/blocks/es_analytics_code_head_css.tpl'),
56
+        array('template' => 'layout/base.tpl', 'block' => 'es_analytics_code', 'file' => 'views/blocks/es_analytics_code_head_css.tpl'),
57 57
     ),
58 58
     'events'       => array(
59 59
         'onActivate'   => 'es_analytics_events::onActivate',