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:active
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!

 
 

Drupal is a registered trademark of Dries Buytaert.