This module use Jquery and Javascript.
When the module is called, Jquery an Javascript must be loaded in the HEAD.
Code: Select all
<link rel="stylesheet" href="path/Style.css" />
<__script__ src="path/jquery-1.4.3.min.js"></__script>
Code: Select all
<link rel="stylesheet" href="path/Style.css" />
<__script__ src="path/jquery-1.4.3.min.js"></__script>
And this is exactly the WRONG way to do this. Because it does not leave control up to the developer to manage this stuff. What were to happen (for example) if you wanted two galleries with two different templates (and therefore two different sets of javascript requirements).. or two different modules that needed javascript on the same page.Take a look at the Gallery module.. It registers a trigger that gets called when the final HTML output is generated. It then inserts all the JavaScript and CSS stuff right before the </head>
calguy1000 wrote:And this is exactly the WRONG way to do this.
Not true: Gallery provides developers a way to control what the module puts in the head section.calguy1000 wrote:it does not leave control up to the developer to manage this stuff.