KW802
07-21-2004, 11:22 AM
If I'm not explaining myself clearly let me know and I'll try to re-word it. :)
For modules that call an external script, such as the Google JS script for Adsense or something like the Twisted History JS script, I'm finding myself creating templates with only one line difference between them. My 'wish list' item would be able have a new field in the CMPS control panel on the 'Edit Modules" section where a variable could be passed in to the template. In the case of the Google and Twisted History examples neither one required a module and the only difference between them was the script tag -- It'd be pretty cool to be able to place the script command in a variable field in the module properties that then would get passed in to the template. That way when ever somebody needs a new module that is just calling a different script then they could re-use the same template over & over again but just pass in a different string.
In my example above I'm using some javascript examples of the string to be passed in but I could picture it being useful for other purposes as well where a string variable was able to be passed in to the template.
For modules that call an external script, such as the Google JS script for Adsense or something like the Twisted History JS script, I'm finding myself creating templates with only one line difference between them. My 'wish list' item would be able have a new field in the CMPS control panel on the 'Edit Modules" section where a variable could be passed in to the template. In the case of the Google and Twisted History examples neither one required a module and the only difference between them was the script tag -- It'd be pretty cool to be able to place the script command in a variable field in the module properties that then would get passed in to the template. That way when ever somebody needs a new module that is just calling a different script then they could re-use the same template over & over again but just pass in a different string.
In my example above I'm using some javascript examples of the string to be passed in but I could picture it being useful for other purposes as well where a string variable was able to be passed in to the template.