<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Adam DiCarlo&#039;s Blog &#187; drupal</title>
	<atom:link href="http://adamdicarlo.com/category/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://adamdicarlo.com</link>
	<description>Programming, Linux, music, woodworking....</description>
	<lastBuildDate>Thu, 12 Nov 2009 21:26:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Drupal Pitfall: @import-ing CSS</title>
		<link>http://adamdicarlo.com/2009/11/04/drupal-pitfall-import-ing-css/</link>
		<comments>http://adamdicarlo.com/2009/11/04/drupal-pitfall-import-ing-css/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 01:00:35 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://adamdicarlo.com/?p=189</guid>
		<description><![CDATA[Pitfall:
/* local.css */
@import &#34;menu-styles.css&#34;
@import &#34;foobarbaz.css&#34;
This pitfall causes style breakage when enabling Drupal&#8217;s CSS aggregation/caching.
Symptom
Some parts of the page (e.g., the primary links menu) look completely different after enabling caching.
Cause
Drupal&#8217;s CSS caching aggregates all your theme&#8217;s and your modules&#8217; CSS files into one file (to minimize HTTP requests). But it doesn&#8217;t look for @import statements in [...]]]></description>
			<content:encoded><![CDATA[<p>Pitfall:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:475px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/* local.css */<br />
@import &quot;menu-styles.css&quot;<br />
@import &quot;foobarbaz.css&quot;</div></div>
<p>This pitfall causes style breakage when enabling Drupal&#8217;s CSS aggregation/caching.</p>
<h3>Symptom</h3>
<p>Some parts of the page (e.g., the primary links menu) look completely different after enabling caching.</p>
<h3>Cause</h3>
<p>Drupal&#8217;s CSS caching aggregates all your theme&#8217;s and your modules&#8217; CSS files into one file (to minimize HTTP requests). <strong>But it doesn&#8217;t look for @import statements in CSS when doing so.</strong></p>
<h3>Solution</h3>
<p>Declare <em>all</em> your CSS files in your theme&#8217;s .info file:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:475px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mytheme.info<br />
stylesheets[all][] = menu-styles.css<br />
stylesheets[all][] = foobarbaz.css</div></div>
<p>and remove your CSS @import statements. (And as always, rebuild the theme registry for the changes to take effect.)</p>
]]></content:encoded>
			<wfw:commentRss>http://adamdicarlo.com/2009/11/04/drupal-pitfall-import-ing-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Pitfalls</title>
		<link>http://adamdicarlo.com/2009/11/04/drupal-pitfalls/</link>
		<comments>http://adamdicarlo.com/2009/11/04/drupal-pitfalls/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 21:35:14 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://adamdicarlo.com/?p=178</guid>
		<description><![CDATA[Forgetting to put
&#60;?php print $closure; ?&#62;
in your theme&#8217;s page.tpl.php.
Forgetting the closure prevents modules like Google Analytics from being able to put JavaScript at the end of the page body. Without that JavaScript, not much analytics&#8230;izing gets done.
This is a fairly common mistake, in my experience as a Drupal maintenance programmer.
]]></description>
			<content:encoded><![CDATA[<p><strong>Forgetting to put</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:475px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?php print $closure; ?&gt;</div></div>
<p>in your theme&#8217;s page.tpl.php.</strong></p>
<p>Forgetting the closure prevents modules like <a href="http://drupal.org/project/google_analytics">Google Analytics</a> from being able to put JavaScript at the end of the page body. Without that JavaScript, not much analytics&#8230;izing gets done.</p>
<p>This is a fairly common mistake, in my experience as a Drupal maintenance programmer.</p>
]]></content:encoded>
			<wfw:commentRss>http://adamdicarlo.com/2009/11/04/drupal-pitfalls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
