<?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>12 Stix - Tech Answers and Fixes &#187; Drupal</title>
	<atom:link href="http://12stix.com/category/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://12stix.com</link>
	<description>Tech Answers and Fixes</description>
	<lastBuildDate>Tue, 11 Oct 2011 12:20:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Alter the node add form in Drupal 7</title>
		<link>http://12stix.com/2011/10/11/alter-the-node-add-form-in-drupal-7/</link>
		<comments>http://12stix.com/2011/10/11/alter-the-node-add-form-in-drupal-7/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 12:19:09 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal 7]]></category>
		<category><![CDATA[form api]]></category>
		<category><![CDATA[node alter]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=449</guid>
		<description><![CDATA[If you want to change the Save button text to Submit in Drupal 7 add the following to your template.php file. Simply replace YOURTHEME with the name of your theme and CONTENTTYPE to the machine name of your content type. &#160; &#160; &#160; &#160; function YOURTHEME_form_alter(&#38;$form, &#38;$form_state, $form_id) { if ($form_id == &#8216;CONTENTTYPE_node_form&#8217;) { $form['actions']['submit']['#value'] [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you want to change the Save button text to Submit in Drupal 7 add the following to your template.php file.</p>
<p>Simply replace YOURTHEME with the name of your theme and CONTENTTYPE to the machine name of your content type.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>function YOURTHEME_form_alter(&amp;$form, &amp;$form_state, $form_id) {<br />
if ($form_id == &#8216;CONTENTTYPE_node_form&#8217;) {<br />
$form['actions']['submit']['#value'] = t(&#8216;Submit&#8217;);<br />
}<br />
}</p>
<p>&nbsp;</p>
<div class="shr-publisher-449"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2011/10/11/alter-the-node-add-form-in-drupal-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Printing CCK Fields in Drupal 7</title>
		<link>http://12stix.com/2011/08/01/printing-cck-fields-in-drupal-7/</link>
		<comments>http://12stix.com/2011/08/01/printing-cck-fields-in-drupal-7/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 14:12:40 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=434</guid>
		<description><![CDATA[In node.tpl.php &#60;?php print render($content['field_EXAMPLE']); ?&#62; &#60;?php print render($content['body']); ?&#62; In page.tpl.php &#60;?php print $node-&#62;field_EXAMPLE['und'][0]['value']; ?&#62;]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In node.tpl.php</p>
<p>&lt;?php print render($content['field_EXAMPLE']); ?&gt;<br />
&lt;?php print render($content['body']); ?&gt;</p>
<p>In page.tpl.php</p>
<p>&lt;?php print $node-&gt;field_EXAMPLE['und'][0]['value']; ?&gt;</p>
<div class="shr-publisher-434"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2011/08/01/printing-cck-fields-in-drupal-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notice: Undefined variable: site_name_and_slogan in include()</title>
		<link>http://12stix.com/2011/07/11/notice-undefined-variable-site_name_and_slogan-in-include/</link>
		<comments>http://12stix.com/2011/07/11/notice-undefined-variable-site_name_and_slogan-in-include/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 11:40:41 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=421</guid>
		<description><![CDATA[Drupal 7x If you have copied the Garland theme and renamed the directory and garland.info file you need to change all references of garland in the template.php file to your new theme name.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Drupal 7x</p>
<p>If you have copied the Garland theme and renamed the directory and garland.info file you need to change all references of garland in the template.php file to your new theme name.</p>
<div class="shr-publisher-421"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2011/07/11/notice-undefined-variable-site_name_and_slogan-in-include/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery Not Working in Drupal 7</title>
		<link>http://12stix.com/2011/02/28/jquery-not-working-in-drupal-7/</link>
		<comments>http://12stix.com/2011/02/28/jquery-not-working-in-drupal-7/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 14:08:27 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=337</guid>
		<description><![CDATA[If when converting a theme to Drupal 7 you get the following Javascript errror in your JQuery: $ is not a function This is because Drupal 7 improves compatability with other Javascript libraries so you need to put the following wrapper around your code: (function ($) { //your existing code })(jQuery);]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If when converting a theme to Drupal 7 you get the following Javascript errror in your JQuery:</p>
<p>$ is not a function</p>
<p>This is because Drupal 7 improves compatability with other Javascript libraries so you need to put the following wrapper around your code:</p>
<p><code><br />
(function ($) {	</p>
<p>//your existing code</p>
<p>})(jQuery);<br />
</code></p>
<div class="shr-publisher-337"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2011/02/28/jquery-not-working-in-drupal-7/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Drupal CCK Autonumber Field</title>
		<link>http://12stix.com/2009/01/05/drupal-cck-autonumber-field/</link>
		<comments>http://12stix.com/2009/01/05/drupal-cck-autonumber-field/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 16:24:14 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=158</guid>
		<description><![CDATA[In a Drupal site you may have a content type that needs an auto number to be generated that auto increments on each new node of that type. To do this install the computed field module http://drupal.org/project/computed_field Then create a new field of the type computed field and add the code from the following URL [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In a Drupal site you may have a content type that needs an auto number to be generated that auto increments on each new node of that type.</p>
<p>To do this install the computed field module</p>
<p>http://drupal.org/project/computed_field</p>
<p>Then create a new field of the type computed field and add the code from the following URL</p>
<p>http://drupal.org/node/313110</p>
<div class="shr-publisher-158"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2009/01/05/drupal-cck-autonumber-field/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Removing Spam From a Drupal Website</title>
		<link>http://12stix.com/2008/10/17/removing-spam-from-a-drupal-website/</link>
		<comments>http://12stix.com/2008/10/17/removing-spam-from-a-drupal-website/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 08:30:31 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=81</guid>
		<description><![CDATA[For WordPress the integration with Akismet is an ideal solution for removing spam comments from your website. Until recently this tight integration was not available for Drupal. While Akismet was available for Drupal it lacked some of the abilities that WordPress included. This was until Mollom became available for Drupal, designed by Dries Buytaert, the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>For WordPress the integration with Akismet is an ideal solution for removing spam comments from your website. Until recently this tight integration was not available for Drupal. While Akismet was available for Drupal it lacked some of the abilities that WordPress included.</p>
<p>This was until Mollom became available for Drupal, designed by Dries Buytaert, the founder of Drupal. Mollom works in a similar way to Akismet however has tight integration with Drupal. A free version is available for smaller sites and a professional version for busier sites costing 30 Euros/month.</p>
<p>For more about Mollom visit:</p>
<p>www.mollom.com</p>
<p>For more about Drupal visit:</p>
<p>www.drupal.org</p>
<p>I have tested Mollom on a number of client sites and will be implementing it soon on our parent website, www.imafish.co.uk .</p>
<div class="shr-publisher-81"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2008/10/17/removing-spam-from-a-drupal-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increase the memory available to PHP</title>
		<link>http://12stix.com/2008/10/08/increase-the-memory-available-to-php/</link>
		<comments>http://12stix.com/2008/10/08/increase-the-memory-available-to-php/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 10:32:38 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=41</guid>
		<description><![CDATA[If you get out of memory errors in PHP or if Drupal suggests you increase the memory available to PHP then you can do this with the following line of code: ini_set(&#039;memory_limit&#039;,&#039;16M&#039;); In Drupal the best place to put this is in the settings.php file found in sites/default/]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you get out of memory errors in PHP or if Drupal suggests you increase the memory available to PHP then you can do this with the following line of code:</p>
<p><span><span class="func">
<pre class="brush: php">ini_set(&#039;memory_limit&#039;,&#039;16M&#039;);</pre>
<p></span></span></p>
<p>In Drupal the best place to put this is in the settings.php file found in sites/default/</p>
<div class="shr-publisher-41"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2008/10/08/increase-the-memory-available-to-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 6 Reloads the Database Page on Installation</title>
		<link>http://12stix.com/2008/10/07/drupal-6-reloads-the-database-page-on-installation/</link>
		<comments>http://12stix.com/2008/10/07/drupal-6-reloads-the-database-page-on-installation/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 10:28:03 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=39</guid>
		<description><![CDATA[When installing Drupal 6 if you find the database page keeps reloading when you enter the database details try to enter the username/password and database name directly into sites/default/settings.php For some reason even when setting the settings.php file to writable Drupal cannot write to it which is why you need to enter it manually.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>When installing Drupal 6 if you find the database page keeps reloading when you enter the database details try to enter the username/password and database name directly into sites/default/settings.php</p>
<p>For some reason even when setting the settings.php file to writable Drupal cannot write to it which is why you need to enter it manually.</p>
<div class="shr-publisher-39"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2008/10/07/drupal-6-reloads-the-database-page-on-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

