<?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>NickSheehy.com</title>
	<atom:link href="http://nicksheehy.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nicksheehy.com</link>
	<description>please ignore the rather uninspired theme, this website is changing</description>
	<lastBuildDate>Sun, 17 May 2009 16:27:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Drupal: Creating new regions</title>
		<link>http://nicksheehy.com/drupal/drupal-creating-new-regions/</link>
		<comments>http://nicksheehy.com/drupal/drupal-creating-new-regions/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 13:43:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://nicksheehy.com/?p=9</guid>
		<description><![CDATA[One of the most useful things a Drupal themer can learn is how to create custom regions. That&#8217;s probably a gross overstatement&#8230; but there you go. I find this useful:
1. Put this in your theme template.php file. (if you don&#8217;t have one, create one in your new theme folder&#8230; wrap it&#8217;s contents in a &#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />One of the most useful things a Drupal themer can learn is how to create custom regions. That&#8217;s probably a gross overstatement&#8230; but there you go. I find this useful:</p>
<p>1. Put this in your theme template.php file. (if you don&#8217;t have one, create one in your new theme folder&#8230; wrap it&#8217;s contents in a <code>&lt;?php ?&gt;</code> tag</p>
<div class="codeblock">
<code>function ThemeName_regions(){<br />
    return array(<br />
    'RegionName'=&gt;t('RegionName'),<br />
  );<br />
}</code>
</div>
<p> <br />
2. in your page.tpl.php call the region where you want it:</p>
<div class="codeblock">
<code>&lt;?php print $RegionName; ?&gt;</code>
</div>
<p>or to keep your page.tpl.php a bit more flexible (and perhaps save yourself from creating additional .tpl.php files):</p>
<div class="codeblock">
<code>&lt;?php if ($RegionName): ?&gt;<br />
   &lt;div id="RegionName"&gt;<br />
      &lt;?php print $RegionName; ?&gt;<br />
   &lt;/div&gt;<br />
&lt;?php endif; ?&gt;<br />
</code>
</div>
]]></content:encoded>
			<wfw:commentRss>http://nicksheehy.com/drupal/drupal-creating-new-regions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove unwanted img attributes with Jquery</title>
		<link>http://nicksheehy.com/drupal/remove-unwanted-img-attributes-with-jquery/</link>
		<comments>http://nicksheehy.com/drupal/remove-unwanted-img-attributes-with-jquery/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 13:29:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://nicksheehy.com/?p=7</guid>
		<description><![CDATA[(Not really a difficult issue &#8211; I&#8217;ve posted more for my own quick reference).
In Drupal, if you find that image attributes (align, vspace, hspace, etc) added by site editors/authors are messing up your lovely layout, add this bit of jquery:
$(document).ready(function () {
  // Remove image unwanted image attributes that might be added by editors
  $('img').removeAttr('align').removeAttr('vspace').removeAttr('hspace');
});
Just remember to [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />(Not really a difficult issue &#8211; I&#8217;ve posted more for my own quick reference).</p>
<p>In Drupal, if you find that image attributes (align, vspace, hspace, etc) added by site editors/authors are messing up your lovely layout, add this bit of jquery:</p>
<div class="codeblock"><code>$(document).ready(function () {<br />
  // Remove image unwanted image attributes that might be added by editors<br />
  $('img').removeAttr('align').removeAttr('vspace').removeAttr('hspace');<br />
});</code></div>
<p>Just remember to give the editors a list of possible classes to which to achieve the same results with css.  Make it even easier on them and whittle down the available classes to the editor&#8217;s profile via admin/settings/tinymce</p>
]]></content:encoded>
			<wfw:commentRss>http://nicksheehy.com/drupal/remove-unwanted-img-attributes-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Controlling TinyMCE editor width</title>
		<link>http://nicksheehy.com/uncategorized/controlling-tinymce-editor-width/</link>
		<comments>http://nicksheehy.com/uncategorized/controlling-tinymce-editor-width/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 12:42:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[TinyMCE]]></category>

		<guid isPermaLink="false">http://nicksheehy.com/?p=3</guid>
		<description><![CDATA[One thing that really helps the display of the tinyMCE within your Drupal theme&#8230; i.e. not breaking it&#8230; is to put the following rule into your style.css:

.mceToolbarTop
  {
  white-space:normal;
  }

]]></description>
			<content:encoded><![CDATA[<p id="top" />One thing that really helps the display of the tinyMCE within your Drupal theme&#8230; i.e. not breaking it&#8230; is to put the following rule into your style.css:</p>
<div class="codeblock">
<code>.mceToolbarTop<br />
  {<br />
  white-space:normal;<br />
  }</code>
</div>
]]></content:encoded>
			<wfw:commentRss>http://nicksheehy.com/uncategorized/controlling-tinymce-editor-width/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
