I've got a getResources call inside a chunk inside a template and while it works ok, it is doing something strange in the document header.
IE it adds a whole lot of tinymce js to the header.
Anyone experienced this before and know what I've done wrong?
This
<ul>
[[$popularPosts]]</ul>
calls this
<li class="first box1"><h3 class="make_them_click">Popular <em>Posts</em></h3></li>
[[!getResourcesTag? &elementClass=`modSnippet` &element=`getResources` &tpl=`midbox` &parents=`3` &depth=`1` &limit=`6` &includeContent=`1` &includeTVs=`1` and &processTVs=`1` ]]
chunk Template
<li class="first box1">
<img src="[[+tv.boximage]]" width="250" height="" />
<p><a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+pagetitle]]</a></p>
</li>
As I said it works ok, but I get something like this in the header. (I've edited it a lot as there's a whole page full of stuff in there.)
<script type="text/javascript" src="/assets/components/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/assets/components/tinymce/xconfig.js"></script>
<script type="text/javascript" src="/assets/components/tinymce/tiny.js"></script>
<script type="text/javascript">
//<![CDATA[
2","setting_custom_buttons2_desc":"Enter the buttons to use as a comma separated list for the
//]]>
</script>
<script type="text/javascript" src="/assets/components/tinymce/tinymce.panel.js"></script>
<script type="text/javascript">
//<![CDATA[
Tiny.config = {"accessibility_warnings":true,"browserUrl":"\/manager
Tiny.config.setup = function(ed) {
ed.onInit.add(Tiny.onLoad);
ed.onKeyUp.add(Tiny.onChange);
ed.onChange.add(Tiny.onChange);
};
Tiny.templates = [];
Ext.onReady(function() {
});
//]]>
</script>
Thanks