Hi all,
I’m a new enthusiast user of ModX!
I trying to make a website with some basic features: MaxiGallery and a self-made dropdown menu in Mootools.
Everything is ok, but I’ve some questions about the order of the HEAD entries:
MaxiGallery put me a mootools framework after my Chunks, also ModX put me a Mootools framework...
Now I’ve TWO mt frameworks and it’s not good for me.
And, at last, I put my special js functions to manage my dropdown menu in a chunk put just after stylesheet chunk in my template:
<title>[(site_name)] | [*pagetitle*]</title>
{{css_structure}}
{{idc_customjs}}
and the final result is:
<link media="screen, projection" type="text/css" href="assets/templates/idc/css/screen.css" rel="stylesheet"></link>
<link media="print" type="text/css" href="assets/templates/idc/css/print.css" rel="stylesheet"></link>
<link media="screen" type="text/css" href="assets/templates/idc/css/custom.css" rel="stylesheet"></link>
<script type="text/javascript" language="javascript">HERE THERE'S MY CUSTOM WINDOW.ONLOAD MOOTOOLS JAVASCRIPT FOR DROPDOWN</script>
<style type="text/css">HERE THERE'S THE CUSTOM CSS OF MAXIGALLERY</style>
<link media="screen" type="text/css" href="/idc04/assets/snippets/maxigallery/smoothgallery/css/jd.gallery.css" rel="stylesheet"></link>
<script src="/idc04/assets/snippets/maxigallery/smoothgallery/js/mootools.js" type="text/javascript"></script>
<script src="/idc04/assets/snippets/maxigallery/smoothgallery/js/jd.gallery.js" type="text/javascript"></script>
<link media="screen" type="text/css" href="/idc04/assets/snippets/maxigallery/css/default.css" rel="stylesheet"></link>
<script src="/idc04/manager/media/script/mootools/mootools.js" type="text/javascript"></script>
<script src="/idc04/assets/modules/quick_edit/javascript/QuickEdit.js" type="text/javascript"></script>
<link href="/idc04/assets/modules/quick_edit/styles/toolbar.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript">HERE THERE's THE CUSTOM WINDOW.ONLOAD JS OF QUICKEDIT</script>
As you can see, there is a little bit of mess... And, obsiously, my custom js for dropdown can’t work, cause the mootools framework is called after...
how can I reorder this mess or, a little bit easy, how can I move my custom js after the mootools line?
Thanks a lot!