include javascript global_content as include not embedded

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
crankshaft
Forum Members
Forum Members
Posts: 57
Joined: Sun Mar 25, 2007 7:42 am

include javascript global_content as include not embedded

Post 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 ??
Recon
Forum Members
Forum Members
Posts: 200
Joined: Sat Oct 09, 2010 10:23 am

Re: include javascript global_content as include not embedde

Post by Recon »

Give example what you are trying to do.

-R
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: include javascript global_content as include not embedde

Post 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
crankshaft
Forum Members
Forum Members
Posts: 57
Joined: Sun Mar 25, 2007 7:42 am

Re: include javascript global_content as include not embedde

Post 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 ??
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: include javascript global_content as include not embedde

Post 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.
Post Reply

Return to “The Lounge”