<?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>Devblog</title>
	<atom:link href="http://www.devblog.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devblog.co.uk</link>
	<description>Web Development, Drupal &#38; Angry Birds</description>
	<lastBuildDate>Wed, 16 May 2012 10:01:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Drupal 7 Views and AJAX Pagers</title>
		<link>http://www.devblog.co.uk/2012/05/16/drupal-7-views-and-ajax-pagers/</link>
		<comments>http://www.devblog.co.uk/2012/05/16/drupal-7-views-and-ajax-pagers/#comments</comments>
		<pubDate>Wed, 16 May 2012 10:00:39 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=542</guid>
		<description><![CDATA[If you are wanting to use a pager that loads the next page of your view with AJAX and haven&#8217;t found out how yet, go to your View and under the Advanced section, enable AJAX Simples]]></description>
			<content:encoded><![CDATA[<p>If you are wanting to use a pager that loads the next page of your view with AJAX and haven&#8217;t found out how yet, go to your View and under the Advanced section, enable AJAX</p>
<p>Simples</p>
<!-- AdSense Now! V1.98 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadout" style="text-align:center;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-8882357454529269";
/* Devblog Small */
google_ad_slot = "3111773088";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2012/05/16/drupal-7-views-and-ajax-pagers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Having one text search applied to multiple filters and fields in Views 3 / Drupal 7</title>
		<link>http://www.devblog.co.uk/2012/04/27/having-one-text-search-applied-to-multiple-filters-and-fields-in-views-3-drupal-7/</link>
		<comments>http://www.devblog.co.uk/2012/04/27/having-one-text-search-applied-to-multiple-filters-and-fields-in-views-3-drupal-7/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 11:15:11 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=543</guid>
		<description><![CDATA[OK, so we have a view that shows a content type and creates a FAQ page on our of our sites. We wanted to add a filter that would allow users to perform a text search. Adding an exposed filter to search the &#8220;answer&#8221; field...]]></description>
			<content:encoded><![CDATA[<p>OK, so we have a view that shows a content type and creates a FAQ page on our of our sites. We wanted to add a filter that would allow users to perform a text search. Adding an exposed filter to search the &#8220;answer&#8221; field is easy but it also had to search the question.</p>
<p>Here&#8217;s how we did it.</p>
<ul>
<li>Install module <a target="_blank" href="http://drupal.org/project/views_filters_populate"  title="Views Filter Populate">Views Filter Populate</a> and enable it</li>
<li>To go to your view</li>
<li>Add a filter to search the answer field (we used Contains any word)</li>
<li>Add a filter to search the question</li>
<li>Neither of these fields are exposed</li>
<li>Click on dropdown next to &#8220;Add&#8221; for the filters and choose &#8220;and/or, rearrange&#8221;</li>
<li>You want to Add a new filter group and the condition between the two groups should be &#8220;And&#8221;</li>
<li>Drag the Question and Answer filters into the second group and make it&#8217;s condition &#8220;OR&#8221;</li>
<li>Save that and then click &#8220;Add&#8221; for the filters</li>
<li>Choose &#8220;Global: Populate filters&#8221;</li>
<li>Expose it and choose the Question and Answer then save</li>
</ul>
<p>You should now have a search box that will search two or more fields</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2012/04/27/having-one-text-search-applied-to-multiple-filters-and-fields-in-views-3-drupal-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 7: Copy / move the buttons to the top of the node edit / add form</title>
		<link>http://www.devblog.co.uk/2012/04/25/drupal-7-copy-move-the-buttons-to-the-top-of-the-node-edit-add-form/</link>
		<comments>http://www.devblog.co.uk/2012/04/25/drupal-7-copy-move-the-buttons-to-the-top-of-the-node-edit-add-form/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 09:23:52 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=539</guid>
		<description><![CDATA[One annoying thing with the node edit and add forms in Drupal 7 is that if you want to just make a small change to say, the title or a taxonomy term dropdown that is at the top of the node edit form you then...]]></description>
			<content:encoded><![CDATA[<p>One annoying thing with the node edit and add forms in Drupal 7 is that if you want to just make a small change to say, the title or a taxonomy term dropdown that is at the top of the node edit form you then have to scroll all the way down to the bottom to save it.</p>
<p>Here&#8217;s a module that will copy the buttons and place them at the top of the form:<br />
<code></p>
<p>function MYMODULE_form_alter(&#038;$form, $form_state, $form_id) {<br />
  // Is it a node add/edit form?<br />
  if (drupal_substr($form_id, -10) == '_node_form') {<br />
    if(!empty($form['actions'])) {<br />
      foreach($form['actions'] as $name => $button) {<br />
        $form["$name-copy"] = $button;<br />
        $form["$name-copy"]['#weight'] = -500;<br />
      } // end foreach<br />
    }<br />
  }<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2012/04/25/drupal-7-copy-move-the-buttons-to-the-top-of-the-node-edit-add-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic font resizing on iPhone / iPad</title>
		<link>http://www.devblog.co.uk/2012/01/24/automatic-font-resizing-on-iphone-ipad/</link>
		<comments>http://www.devblog.co.uk/2012/01/24/automatic-font-resizing-on-iphone-ipad/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 17:21:06 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=533</guid>
		<description><![CDATA[Our new company website has just gone live and on some pages the layout was broken on the iPhone and iPad. This was due to it&#8217;s minimum font size feature. You can disable this by adding this to your CSS div, p, a, li, td...]]></description>
			<content:encoded><![CDATA[<p>Our new company website has just gone live and on some pages the layout was broken on the iPhone and iPad. This was due to it&#8217;s minimum font size feature.</p>
<p>You can disable this by adding this to your CSS</p>
<p><code>div, p, a, li, td { -webkit-text-size-adjust:none; }</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2012/01/24/automatic-font-resizing-on-iphone-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPlayer on iPhone App</title>
		<link>http://www.devblog.co.uk/2011/12/29/iplayer-on-iphone-app/</link>
		<comments>http://www.devblog.co.uk/2011/12/29/iplayer-on-iphone-app/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 14:28:51 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/2011/12/29/iplayer-on-iphone-app/</guid>
		<description><![CDATA[Just got to Asda and the little one was asleep so I volunteered to stay in the nice warm car watching Frozen Planet on the BBC iPlayer. They&#8217;ve now updated it so that you can watch using 3G instead of just wifi which is great...]]></description>
			<content:encoded><![CDATA[<p>Just got to Asda and the little one was asleep so I volunteered to stay in the nice warm car watching Frozen Planet on the BBC iPlayer. </p>
<p>They&#8217;ve now updated it so that you can watch using 3G instead of just wifi which is great because I don&#8217;t have to go out in the cold, wind and rain but can just watch polar bears instead</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/12/29/iplayer-on-iphone-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Commerce: first impressions</title>
		<link>http://www.devblog.co.uk/2011/11/19/drupal-commerce-first-impressions/</link>
		<comments>http://www.devblog.co.uk/2011/11/19/drupal-commerce-first-impressions/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 01:57:52 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=530</guid>
		<description><![CDATA[I&#8217;ve been running an online shop for a year now which hasn&#8217;t really taken off due to a mixture of lack of time and secondly, hating OSCommerce that it&#8217;s running on. Having spent a large portion of the last year using Drupal 7 for work...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been running an online shop for a year now which hasn&#8217;t really taken off due to a mixture of lack of time and secondly, hating OSCommerce that it&#8217;s running on.</p>
<p>Having spent a large portion of the last year using Drupal 7 for work I decided to re-develop the shop using that. I check it out and two main options for contributed modules to provide the shop functionality came up: UberCart and Drupal Commerce. I started with Ubercart since I&#8217;d heard with it and it was more established, however I didn&#8217;t like some aspects of it and after an update, it crashed the site. So I installed the Drupal Commerce module and started to play with that.</p>
<p>The standard configuration was easy enough being a mix of Drupal knowledge and the fundamentals of commerce software. After that it was a case of adding my 250+ products. This is where the first bit of confusion came in. Drupal Commerce works by having a content type called Product Display which can have fields in the same way as other nodes, but also has within the shop Products which are completely seperate and have their own set of fields. It seemed a little confusing at first since I didn&#8217;t get why you&#8217;d want double entry &#8211; having to add the product with the price etc as a Product and then add it again as a Product Display with a description. </p>
<p>After more reading I found out that the seperation of product and display is due to a feature that I specifically needed. My shop sells lingerie and as such each item I sell has options for size and sometimes, colour. In the real world these can be considered seperate products, they are different &#8211; you can&#8217;t send a green one out if the customer has requested red. So with Drupal Commerce you add each option as a seperate Product and then add a Product Display for all of the different options. The Product Display node can then be used to create the site, either as part of a menu, tagged with taxonomy to create product categories or however you would normally use Drupal to create your site.</p>
<p>The benefit though is when you arrive on the Product Display node. Drupal Commerce can then take all the different Products and create option dropdowns so a customer can select the size and colour they want and then add to basket. That chosen Product is then added to their order.</p>
<p>I&#8217;m not sure if this may be annoying for shops where there are no options and you have to add a Product and then Display for each item, but if it is and you have quite a few products then there&#8217;s always Commerce Feeds to the rescue. This is a module that utilises the Drupal Commerce and Feeds modules to allow you to use CSV files or other formats and import them directly into Drupal.</p>
<p>So far I&#8217;ve got the 1,000+ Products added. Tomorrow night I&#8217;ll look at the 250+ Product Displays.</p>
<p>First impressions: impressed</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/11/19/drupal-commerce-first-impressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strange problem when creatng Drupal 7 Module form_submit and db_update</title>
		<link>http://www.devblog.co.uk/2011/11/04/strange-problem-when-creatng-drupal-7-module-form_submit-and-db_update/</link>
		<comments>http://www.devblog.co.uk/2011/11/04/strange-problem-when-creatng-drupal-7-module-form_submit-and-db_update/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 17:03:21 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=524</guid>
		<description><![CDATA[Today we were creating a new custom module in Drupal and we had a form we had created and a submit handler. In the submit handler we had a db_update to update the row in the database. For ages we couldn&#8217;t find out why it...]]></description>
			<content:encoded><![CDATA[<p>Today we were creating a new custom module in Drupal and we had a form we had created and a submit handler. In the submit handler we had a db_update to update the row in the database. For <em>ages</em> we couldn&#8217;t find out why it wasn&#8217;t working until we noticed we&#8217;d set the update variables using </p>
<blockquote><p>$form_state['values']['name']</p></blockquote>
<p>This is wrong. This stores the values of the form fields as they were when the form was generated. To get the values of the fields as they were submitted, you need:</p>
<blockquote><p>$form_state['input']['name']</p></blockquote>
<p>One of those things that takes hours to spot! ARRRGGHH!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/11/04/strange-problem-when-creatng-drupal-7-module-form_submit-and-db_update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 7: Get the tpl.php name of a certain View</title>
		<link>http://www.devblog.co.uk/2011/09/06/drupal-7-get-the-tpl-php-name-of-a-certain-view/</link>
		<comments>http://www.devblog.co.uk/2011/09/06/drupal-7-get-the-tpl-php-name-of-a-certain-view/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 15:17:55 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=517</guid>
		<description><![CDATA[I was trying to theme a certain view in a D7 site since I couldn&#8217;t get Views to do what I needed without using my own PHP and jQuery. It took me ages to track down what name to use in the tpl file for...]]></description>
			<content:encoded><![CDATA[<p>I was trying to theme a certain view in a D7 site since I couldn&#8217;t get Views to do what I needed without using my own PHP and jQuery.</p>
<p>It took me ages to track down what name to use in the tpl file for my theme. The easiest way of finding out what tpl.php name to use, either for a single view, type of view (e.g. unformatted list) or all views is to go into:</p>
<p><code>Structure > View > Edit your view</code></p>
<p>Then under Advanced of the right you will find a &#8220;Theme: Information&#8221; link that gives you extensive information on the files in use. Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/09/06/drupal-7-get-the-tpl-php-name-of-a-certain-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 7 doesn&#8217;t use tpl files for nodes or content types</title>
		<link>http://www.devblog.co.uk/2011/09/02/drupal-7-doesnt-use-tpl-files-for-nodes-or-content-types/</link>
		<comments>http://www.devblog.co.uk/2011/09/02/drupal-7-doesnt-use-tpl-files-for-nodes-or-content-types/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 12:45:17 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=515</guid>
		<description><![CDATA[If you are copying the default page.tpl.php to use for either a specific node or a specific content type but Drupal is ignoring it there are usually two main reasons: tpl file name If you are used to the D6 naming conventions, be aware it...]]></description>
			<content:encoded><![CDATA[<p>If you are copying the default page.tpl.php to use for either a specific node or a specific content type but Drupal is ignoring it there are usually two main reasons:</p>
<ol>
<li><strong>tpl file name</strong><br />
If you are used to the D6 naming conventions, be aware it has changed in D7. The new naming conventions are <a target="_blank" href="http://drupal.org/node/1089656" >here</a></li>
<li><strong>Preprocess function</strong><br />
You may have forgotten to put a preprocess hook in your theme file. For example I have this in most of my Zen sub themes:<br />
<code>function MYTHEME_preprocess_page(&#038;$variables, $hook) {<br />
   //some other stuff<br />
	if (isset($variables['node']))<br />
	{<br />
    	$variables['theme_hook_suggestions'][] = 'page__type__'. $variables['node']->type;<br />
    	$variables['theme_hook_suggestions'][] = "page__node__" . $variables['node']->nid;<br />
	}</p>
<p>}<br />
</code></li>
</ul>
<p>Hope that helps</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/09/02/drupal-7-doesnt-use-tpl-files-for-nodes-or-content-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating Drupal 7 Core using Drush</title>
		<link>http://www.devblog.co.uk/2011/08/27/updating-drupal-7-core-using-drush/</link>
		<comments>http://www.devblog.co.uk/2011/08/27/updating-drupal-7-core-using-drush/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 15:37:46 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[Drush]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=512</guid>
		<description><![CDATA[If you want to save the hassle of upgrading Drupal 7 core from say, 7.4 to 7.7, you can install Drush and then use it from SSH to back up your site and then update core with the follwoing command:drush update Just make sure you&#8217;re...]]></description>
			<content:encoded><![CDATA[<p>If you want to save the hassle of upgrading Drupal 7 core from say, 7.4 to 7.7, you can install Drush and then use it from SSH to back up your site and then update core with the follwoing command:<code>drush update</code><br />
Just make sure you&#8217;re in the directory of the Drupal installation you want to update. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/08/27/updating-drupal-7-core-using-drush/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

