<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://echodittolabs.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>EchoDitto Labs - CSS Aggregation Problems in Drupal 5 - Comments</title>
 <link>http://echodittolabs.org/node/82</link>
 <description>Comments for &quot;CSS Aggregation Problems in Drupal 5&quot;</description>
 <language>en</language>
<item>
 <title>very nice and good thanks...</title>
 <link>http://echodittolabs.org/node/82#comment-4211</link>
 <description>&lt;p&gt;very nice and good thanks...&lt;/p&gt;
</description>
 <pubDate>Tue, 16 Dec 2008 16:55:10 -0800</pubDate>
 <dc:creator>film izle</dc:creator>
 <guid isPermaLink="false">comment 4211 at http://echodittolabs.org</guid>
</item>
<item>
 <title>sohbet</title>
 <link>http://echodittolabs.org/node/82#comment-4075</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://www.slmsohbet.com&quot; title=&quot;sohbet, chat, sohbet odaları, sohbet siteleri, bol sohbet&quot; target=&quot;_blank&quot;&gt;sohbet&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Tue, 16 Sep 2008 14:11:46 -0700</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 4075 at http://echodittolabs.org</guid>
</item>
<item>
 <title>Thank you thank you thank</title>
 <link>http://echodittolabs.org/node/82#comment-4023</link>
 <description>&lt;p&gt;Thank you thank you thank you!  This has saved me a lot of grief.&lt;/p&gt;
</description>
 <pubDate>Wed, 20 Aug 2008 11:06:13 -0700</pubDate>
 <dc:creator>rimbaud</dc:creator>
 <guid isPermaLink="false">comment 4023 at http://echodittolabs.org</guid>
</item>
<item>
 <title>CSS Aggregation Problems in Drupal 5</title>
 <link>http://echodittolabs.org/node/82</link>
 <description>&lt;p&gt;This may be old hat to some of you, but it was a near-revelation to me (and tough to find through Googling) so I thought I&#039;d share it and potentially save others some hair pulling.&lt;/p&gt;
&lt;p&gt;If your Drupal 5 site goes crazy when you turn on &lt;a href=&quot;http://nadeausoftware.com/articles/2007/03/speed_drupal_web_site_enabling_css_file_aggregation&quot;&gt;CSS aggregation&lt;/a&gt;, try examining your stylesheet(s) for absolutely-addressed url()s.  There was (and is) a bug in Drupal 5&#039;s CSS aggregator code &amp;mdash; since aggregated CSS has to live in a different directory from the original stylesheets, all those URLs have to be rewritten.  The function that rewrites them expects them all to be relative, though.  So:&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;geshifilter php&quot;&gt;background&lt;span style=&quot;color: #66cc66;&quot;&gt;-&lt;/span&gt;image&lt;span style=&quot;color: #66cc66;&quot;&gt;:&lt;/span&gt; url&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;sites&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;all&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;themes&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;zen&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;xxx&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;images&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;something&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;gif&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;gets turned into:&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;geshifilter php&quot;&gt;background&lt;span style=&quot;color: #66cc66;&quot;&gt;-&lt;/span&gt;image&lt;span style=&quot;color: #66cc66;&quot;&gt;:&lt;/span&gt; url&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;sites&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;all&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;themes&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;zen&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;xxx&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//sites/all/themes/zen/xxx/images/something.gif);&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;That&#039;s obviously no good.  Instead, simply make sure that your URLs are all relatively-addressed:&lt;/p&gt;
&lt;p&gt;&lt;code class=&quot;geshifilter php&quot;&gt;background&lt;span style=&quot;color: #66cc66;&quot;&gt;-&lt;/span&gt;image&lt;span style=&quot;color: #66cc66;&quot;&gt;:&lt;/span&gt; url&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;./&lt;/span&gt;images&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;something&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;gif&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;That should be rewritten properly by the aggregator.&lt;/p&gt;
&lt;p&gt;The more complete solution, of course, is to fix &lt;a href=&quot;http://api.drupal.org/api/function/drupal_build_css_cache/5&quot;&gt;drupal_build_css_cache()&lt;/a&gt;.  There is a &lt;a href=&quot;http://drupal.org/node/172830&quot;&gt;patch available&lt;/a&gt;, but since the issue has been &lt;a href=&quot;http://api.drupal.org/api/function/_drupal_build_css_path&quot;&gt;more thoroughly addressed in Drupal 6 and 7&lt;/a&gt;, not much attention is being paid to fixing it in 5.  And that&#039;s probably okay: in most cases it&#039;s going to be quicker and easier to simply edit your stylesheet to use relative paths.  It&#039;s best to avoid patching core when possible, and this is no exception.&lt;/p&gt;
</description>
 <comments>http://echodittolabs.org/node/82#comments</comments>
 <category domain="http://echodittolabs.org/taxonomy/term/203">aggregation</category>
 <category domain="http://echodittolabs.org/taxonomy/term/206">caching</category>
 <category domain="http://echodittolabs.org/taxonomy/term/157">css</category>
 <category domain="http://echodittolabs.org/taxonomy/term/202">d5</category>
 <category domain="http://echodittolabs.org/taxonomy/term/46">drupal</category>
 <category domain="http://echodittolabs.org/taxonomy/term/57">drupal5</category>
 <category domain="http://echodittolabs.org/taxonomy/term/205">optimization</category>
 <category domain="http://echodittolabs.org/taxonomy/term/204">performance</category>
 <pubDate>Wed, 30 Jul 2008 08:54:10 -0700</pubDate>
 <dc:creator>Tom</dc:creator>
 <guid isPermaLink="false">82 at http://echodittolabs.org</guid>
</item>
</channel>
</rss>
