<![CDATA[ Auto generated css and its generating script appear in the head twice - MODX Community Forums]]> https://forums.modx.com/thread/?thread=50741 <![CDATA[Re: Auto generated css and its generating script appear in the head twice]]> https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-392306 and thx for your request on github.]]> goldsky Sep 04, 2011, 01:32 AM https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-392306 <![CDATA[Re: Auto generated css and its generating script appear in the head twice]]> https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-392294 Yeah i had the </head> both in the head chunk and in the template. Removing one solved the problem.
Thanks for catching it. And thanks for the best MODx image gallery.
]]>
temp99 Sep 03, 2011, 11:17 PM https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-392294
<![CDATA[Re: Auto generated css and its generating script appear in the head twice]]> https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-392091 I also notice that the google's analytic script is also duplicating.]]> goldsky Sep 02, 2011, 12:35 AM https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-392091 <![CDATA[Re: Auto generated css and its generating script appear in the head twice]]> https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-392021 http://dzcard.com

currently i'm using the first snippet call above with the path to the gallery folder hardcoded in the template. javascript in the header still gets added twice but at least it works and the slide navigation active and hover states work too

to try to isolate the problem i reinstalled a clean version of the gallery. but when i try to use a new "fancy" slideshow i created with the second call above (on my dev server only for now) the slideshow works but the
<div id="ft-buttons-slides" class="ft-buttons">...</div>
appears twice in the code and breaks the active state behavior for the buttons.

So somewhere javascript is being inserted twice but i'm not sure where or why.
Please help.




]]>
temp99 Sep 01, 2011, 10:16 AM https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-392021
<![CDATA[Re: Auto generated css and its generating script appear in the head twice]]> https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-391978 i lost access to my old account so had to create this new temporary one.
I am logged into the manager since i'm working on the site. There are no multiple easy2 snippet calls on pages. All pages are multi-lingual with YAMS

Any time easy2 snippet is called javascript in the head appears twice.
Here are a couple of calls that i'm using:

 [[easy2? &gid=`4` &orderby=`filename` &order=`ASC` &grid_class=`fancy-slides` &tpl=`assets/chunks/easy2gallery/slideshow_gallery_tpl.chk` &thumb_tpl=`assets/chunks/easy2gallery/slideshow_thumbnail_tpl.chk` ]]

and
[!easy2? &gid=`14` &slideshow=`fancy` &ss_config=`wide` &ss_img_src=`original` &ss_indexfile=`assets/chunks/easy2gallery/fancy.php` !]


I got easy2gallery version 1.4.8 on MODx v1.0.5

]]>
temp99 Sep 01, 2011, 02:11 AM https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-391978
<![CDATA[Re: Auto generated css and its generating script appear in the head twice]]> https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-297269 are you logged in the manager while browsing the page?
do you have some easy2 multiple calls on the same page?
=> i don’t think this is the problem, but please explain what else is happening on your page.]]>
goldsky Jul 23, 2011, 03:00 PM https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-297269
<![CDATA[Auto generated css and its generating script appear in the head twice]]> https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-297268 I’m on MODx 1.0.5, Easy2Gallery 1.4.7, jQuery 1.5.1

<script type="text/javascript">

 window.onload = function() {
 var css = document.createElement('style');
 css.type = 'text/css';
 var styles = 'div.e2g_wrapper {visibility:visible}';

 if (css.styleSheet) css.styleSheet.cssText = styles;
 else css.appendChild(document.createTextNode(styles));

 document.getElementsByTagName("head")[0].appendChild(css);
 };

</script>
<style type="text/css">
1div.e2g_wrapper {visibility:visible}
</style>
]]>
outre99 Jul 23, 2011, 01:35 AM https://forums.modx.com/thread/50741/auto-generated-css-and-its-generating-script-appear-in-the-head-twice#dis-post-297268