Hi;
I am looking for a way to be able to use the global_content to create javascript and rather than embed the javascript into the page using the <__script__> code </__script> method, using the <__script__ src=xxx></__script> method, similar to the way that stylesheets are included as virtual file includes.
I am not asking how to include javascript in pages, or how to include a real xxx.js into a page, I know how to do that, but how to make a database record appear to be a seperate xxx file include and not appear embedded into the page ??
include javascript global_content as include not embedded
-
- Forum Members
- Posts: 57
- Joined: Sun Mar 25, 2007 7:42 am
Re: include javascript global_content as include not embedde
Give example what you are trying to do.
-R
-R
Re: include javascript global_content as include not embedde
I don't know for sure, but maybe the ScriptDeploy module has some functionality in this area.
http://dev.cmsmadesimple.org/projects/scriptdeploy
http://dev.cmsmadesimple.org/projects/scriptdeploy
-
- Forum Members
- Posts: 57
- Joined: Sun Mar 25, 2007 7:42 am
Re: include javascript global_content as include not embedde
Hi, thanks, I just attempted to install that module and it killed my entire site dead, with a PHP fatal error -no admin access no front end, nothing at all.Jos wrote:I don't know for sure, but maybe the ScriptDeploy module has some functionality in this area.
http://dev.cmsmadesimple.org/projects/scriptdeploy
Code: Select all
PHP Fatal error: Class 'scriptdeploy_utils' not found in /var/www/html/cms/modules/ScriptDeploy/action.defaultCSS.php on line 1
Re: include javascript global_content as include not embedde
ah, thought it was only me... I had the same issue.
I solved it by renaming de modules/Scriptdeploy/ directory, go to modules list in the admin. Scriptdeploy is then automatically deinstalled.
Then renamed it back to the original again, installed via the link in the modules list, and it worked.
So I guess you need to install SteUtilities separate first, to be able to install ScriptDeploy.
I solved it by renaming de modules/Scriptdeploy/ directory, go to modules list in the admin. Scriptdeploy is then automatically deinstalled.
Then renamed it back to the original again, installed via the link in the modules list, and it worked.
So I guess you need to install SteUtilities separate first, to be able to install ScriptDeploy.