We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

SL Combinator : Combine and Compress JavaScript and CSS on-the-fly : Version Update (2.1.0) 1st April, 2009

Development and Programming

Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis

@A-P

Stephen - do you have any plans to update for EE 2.0?

Yes. It’ll be a complete rewrite though, as there are a few common issues that need addressing.

@Bertocchi

Can you post your Minify.php file here please?

Stephen

       
Bertocchi's avatar
Bertocchi
5 posts
15 years ago
Bertocchi's avatar Bertocchi

I’m not allowed to attach a PHP file, so I’ve just zipped the entire SL Combinator code that I’m using. Hope this helps, thanks!

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis

Hi Bertocchi,

I can’t reproduce this error. Could you try the following please, and let me know what happens:

  1. Enter the full minify URL into your browser, instead of just the absolute path. For example: http://example.com/utilities/min/index.php?f=css/master.css,css/lib/reset.css
  2. In the extension settings, use {site_url}utilities/min/, instead of /utilities/min/

Thanks, Stephen

       
Ben Lilley's avatar
Ben Lilley
214 posts
15 years ago
Ben Lilley's avatar Ben Lilley

First I just wanted to say this is a truly excellent plugin and makes my life, as a developer, so much easier.

Second I have one small question; is it possible to change the filename that minify outputs? I was kind of hoping to change it to something like http://example.com/utils/min/index.php?f=css/stylesheet.css rather than including all the different filenames. Is this possible?

Thanks everyone!

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis
First I just wanted to say this is a truly excellent plugin and makes my life, as a developer, so much easier.

Thanks Ben, I’m glad you’ve found it useful.

Second I have one small question; is it possible to change the filename that minify outputs? I was kind of hoping to change it to something like http://example.com/utils/min/index.php?f=css/stylesheet.css rather than including all the different filenames. Is this possible?

That’s not possible, due to the way Minify works.

Minify does support predefined file groups, which can be named, but Combinator doesn’t currently support this. This has been a long-planned upgrade, but frankly I wouldn’t hold your breath–it’s quite a way down the to-do list at present.

Cheers, Stephen

       
Jannis Gundermann's avatar
Jannis Gundermann
68 posts
15 years ago
Jannis Gundermann's avatar Jannis Gundermann

It would be great if we could set the parsing stage or something to enable use such as this:

{exp:sl_combinator:combine_js disable="no" debug="no"}
    *script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js">*/script*
    *script type="text/javascript" src="{path='assets/plugins'}">*/script*
    *script type="text/javascript" src="{path='assets/actions'}">*/script*
{/exp:sl_combinator:combine_js}

I like running my CSS/JS through the parser so I have use of variables in my files. The code above currently breaks the page as it compresses files before they are written as their ultimate absolute path.

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis

Hi Jannis,

It would be great if we could set the parsing stage or something…

I’m afraid that’s not possible, due to the order in which EE parses a template.

Cheers, Stephen

       
Jannis Gundermann's avatar
Jannis Gundermann
68 posts
15 years ago
Jannis Gundermann's avatar Jannis Gundermann
Hi Jannis,
It would be great if we could set the parsing stage or something…
I’m afraid that’s not possible, due to the order in which EE parses a template. Cheers, Stephen

I almost expected this,. It’s a shame but nevertheless this is a great plugin! Thanks.

       
Janet Beckley's avatar
Janet Beckley
15 posts
15 years ago
Janet Beckley's avatar Janet Beckley

Stephen -

This is a great extension. I implemented it on one site and will be configuring it on three others next week. Just wanted to send along our thanks and appreciation for taking the time to develop it. It’s working wonders.

Jan

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis

Hi Jan,

That’s good to hear, thanks for letting me know.

Cheers, Stephen

       
First 6 7 8

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.