Excluding a path from JS Aggregation - list of known modules

alimc29 - May 20, 2008 - 21:30
Project:Javascript Aggregator
Version:5.x-1.3
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Is there a way to exclude a path rather than an absolute URL? For instance, I am using the UberCart module, which has multiple .js's with a "?" naming convention
(ex: )

One way would be to have them fix the issue of using that naming convention, but I was also wondering if there's a way I can either get the JavaScript Aggregation to work
1. on a file with a "?" in its URL
OR
2. on a path, so that i could exclude all .js's under /ubercart/

Thanks

#1

Veggieryan - May 21, 2008 - 23:39

This would be great as currently ubercart is totally incompatible with javascript_aggregator

Even if you manually exclude all the ubercart js it still gets included in the bundled js, yet each inclusion is empty....

hmmm,
would love to figure this one out.

thanks,
ryan.

#2

derjochenmeyer - May 22, 2008 - 00:05

I would be happy to implement this feature... I didnt write the actual exclusion patterns... they were written by hoesh check this issue http://drupal.org/node/219005

#3

JStarcher - May 22, 2008 - 01:46

I put in /?q=hovertip/settings_js and it didn't include it, so try tailoring this method to your specific file.

#4

najibx - July 19, 2008 - 05:37
Title:Excluding a path from JS Aggregation» Excluding a path from JS Aggregation - list of known modules

Could you put in Readme.txt of known modules which are not working and which is working with exclusion required.

This issue got me into a real trouble as i could not figure out why my fckeditor didn't show up in IE. no error shown by Firebug or IE ... just didn't show.

Put this in "Exclude from js aggregation:" works great.

/sites/all/modules/fckeditor/fckeditor/fckeditor.js

List of other knows .js from modules need to be excluded is appreciated.

#5

Veggieryan - August 4, 2008 - 21:11

if it helps someone,
I was able to get ubercart shipping quotes and checkout working by changing line 54

if (($exclude_pattern && preg_match($exclude_pattern, $value)) || preg_match("/ubercart/", $value) || preg_match("/progress/", $value)) {

So something simple is going wrong in the pre_match but I didn't have time to fix it the right way. This got it working for me in the mean time. Its a crucial module so I hope this gets fixed for others.

If a module is breaking try adding another preg_match with that modules name....

#6

asak - August 8, 2008 - 12:36

Veggieryan - Thanks!

That works great!

#7

najibx - September 6, 2008 - 15:53

I have issues several more modules !

1. Hierarchical Select 3
2. Gmap
3. CCk Group fields

#8

jcmarco - September 9, 2008 - 19:28

In the case of GMap module:
http://drupal.org/node/286653

#9

deepbluesolutions - February 5, 2009 - 07:28

Just additional information for ubercart exclusion I found [0-9]{5} worked great with ubercart. Still not having any joy with fckeditor though. I am using the following in the exclude field in javascript_aggregator

/sites/all/modules/fckeditor/fckeditor.config.js
/sites/all/modules/fckeditor/fckeditor.utils.js
/sites/all/modules/fckeditor/fckeditor.popup.js
/sites/all/modules/fckeditor/fckeditor/fckconfig.js
/sites/all/modules/fckeditor/fckeditor/fckeditor.js

using inspect I can see the first two are excluding fine, but the last three are not being excluded, i dont understand quite why these are being included even though I have excluded them. I can confirm, if I disable javascript_aggregator, then fckeditor works perfectly, but when enabled fckeditor just doesnt get called. Any help keenly wanted!

#10

deepbluesolutions - February 5, 2009 - 22:04

Ok stupid mistake, to exclude fckeditor, when running javascript_aggregator you need to exclude

/sites/all/modules/fckeditor/fckeditor.config.js
/sites/all/modules/fckeditor/fckeditor.utils.js
/sites/all/modules/fckeditor/fckeditor.popup.js
/sites/all/modules/fckeditor/fckeditor/fckconfig.js
/sites/all/modules/fckeditor/fckeditor/fckeditor.js
/sites/all/modules/fckeditor/img_assist_fckeditor.js
/sites/all/modules/fckeditor/fckeditor/editor/js/fckeditorcode_ie.js
/sites/all/modules/fckeditor/fckeditor/editor/js/fckeditorcode_gecko.js
/sites/all/modules/fckeditor/fckeditor/editor/js/fckadobeair.js

#11

rhylos - February 23, 2009 - 02:51

Can you verify that its the aggregator that causes FCKeditor to not show in IE or the combination of enabling the JSMin option?

#12

rhylos - March 14, 2009 - 01:10

Reprint in response to #11
Check out the issue reported by rhylos here: #380134: Not compatible with JSMin? and suggested solution.
If FCKeditor doesn't work in IE and IE does not report any javascript errors, then it seems that it is an issue with javascript compression.

#13

derjochenmeyer - May 23, 2009 - 16:15
Status:active» won't fix

No new features will be added for Drupal 5

 
 

Drupal is a registered trademark of Dries Buytaert.