Page 1 of 1

include javascript global_content as include not embedded

Posted: Fri Jun 01, 2012 3:33 am
by crankshaft
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 ??

Re: include javascript global_content as include not embedde

Posted: Fri Jun 01, 2012 2:18 pm
by Recon
Give example what you are trying to do.

-R

Re: include javascript global_content as include not embedde

Posted: Fri Jun 01, 2012 6:07 pm
by Jos
I don't know for sure, but maybe the ScriptDeploy module has some functionality in this area.
http://dev.cmsmadesimple.org/projects/scriptdeploy

Re: include javascript global_content as include not embedde

Posted: Sat Jun 02, 2012 3:32 am
by crankshaft
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
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.

Code: Select all

PHP Fatal error:  Class 'scriptdeploy_utils' not found in /var/www/html/cms/modules/ScriptDeploy/action.defaultCSS.php on line 1
Fortunately I removed the 2 module folders scriptDeploy and SiteUtilities and my site is up again, but I have no idea if any changes were made to the database ??

Re: include javascript global_content as include not embedde

Posted: Sat Jun 02, 2012 7:07 am
by Jos
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.