<?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>Swami Web Design Blog &#187; Drupal</title>
	<atom:link href="http://blog.swamiwebdesign.com/drupal/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.swamiwebdesign.com</link>
	<description>Blog on Web Design, CSS, CMS, SEO, PHP based shopping carts and other topics</description>
	<lastBuildDate>Thu, 24 Nov 2011 12:51:12 +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>Warning: require_once(./includes/database.inc) [function.require-once]: failed to open stream: No such file or directory in /public_html/includes/bootstrap.inc on line 1021</title>
		<link>http://blog.swamiwebdesign.com/drupal/warning-require_once-includesdatabase-inc-function-require-once-failed-to-open-stream-no-such-file-or-directory-in-public_htmlincludesbootstrap-inc-on-line-1021.html</link>
		<comments>http://blog.swamiwebdesign.com/drupal/warning-require_once-includesdatabase-inc-function-require-once-failed-to-open-stream-no-such-file-or-directory-in-public_htmlincludesbootstrap-inc-on-line-1021.html#comments</comments>
		<pubDate>Mon, 14 Dec 2009 07:45:40 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Bootstrap.inc]]></category>
		<category><![CDATA[database.inc]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[failed opening required]]></category>

		<guid isPermaLink="false">http://blog.swamiwebdesign.com/?p=81</guid>
		<description><![CDATA[Solution for "Failed to open stream: No such file or directory in /public_html/includes/bootstrap.inc on line 1021" problem in Drupal.]]></description>
			<content:encoded><![CDATA[<p>All of sudden I got following error in one of my Drupal website</p>
<p>Warning: require_once(./includes/database.inc) [function.require-once]: failed to open stream: No such file or directory in /public_html/includes/bootstrap.inc on line 1021</p>
<p>Fatal error: require_once() [function.require]: Failed opening required &#8216;./includes/database.inc&#8217; (include_path=&#8217;.:/usr/lib/php:/usr/local/lib/php&#8217;) in /public_html/includes/bootstrap.inc on line 1021</p>
<p>Digging down further I discovered that the files are somehow corrupted as I had moved the files from one host to another. I uploaded files again and it solved the problem.</p>
<p>Also a lot of folders were not uploaded correctly.</p>
<p><strong>Re-uploading all the files solved the problem.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swamiwebdesign.com/drupal/warning-require_once-includesdatabase-inc-function-require-once-failed-to-open-stream-no-such-file-or-directory-in-public_htmlincludesbootstrap-inc-on-line-1021.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal &#8211; How to enable navigation menu in Admin</title>
		<link>http://blog.swamiwebdesign.com/drupal/drupal-how-to-enable-navigation-menu-in-admin.html</link>
		<comments>http://blog.swamiwebdesign.com/drupal/drupal-how-to-enable-navigation-menu-in-admin.html#comments</comments>
		<pubDate>Wed, 16 Jul 2008 21:27:54 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.swamiwebdesign.com/?p=44</guid>
		<description><![CDATA[In this post I'll discuss how to enable navigation menu in Drupal.]]></description>
			<content:encoded><![CDATA[<p>There might be case when you have disabled the navigation menu in Drupal and would like to enable it in just Admin.</p>
<p>To do so go to admin-&gt;build-&gt;block</p>
<p>Enable the Navigation menu and attach it to left, right, header or footer wherever you want.</p>
<p>Then click on Configure against this and make it visible for authenticated user so that it shall be visible to Admin only.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swamiwebdesign.com/drupal/drupal-how-to-enable-navigation-menu-in-admin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to specify front page in Drupal?</title>
		<link>http://blog.swamiwebdesign.com/drupal/how-to-specify-front-page-in-drupal.html</link>
		<comments>http://blog.swamiwebdesign.com/drupal/how-to-specify-front-page-in-drupal.html#comments</comments>
		<pubDate>Sat, 28 Jun 2008 16:57:05 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[home Page]]></category>

		<guid isPermaLink="false">http://blog.swamiwebdesign.com/?p=43</guid>
		<description><![CDATA[If you are new to Drupal you will find it a nightmare to remember how to specify the front or Home page in Drupal.]]></description>
			<content:encoded><![CDATA[<p>In <strong><a title="Drupal" href="http://www.swamiwebdesign.co.uk/drupal.php" target="_blank">Drupal</a></strong> it is little tricky to specify which page would be home page.</p>
<p>You can specify which page you would like to be shown as home page from Admin-&gt;Settings-&gt;Site Information</p>
<p>admin/settings/site-information</p>
<p>In the <strong>Default front page: </strong>enter the node which you would like to make to be displayed on front page.<strong><br />
</strong></p>
<p>this value should be <strong>node/1 </strong>or any node which you wish to make home page.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swamiwebdesign.com/drupal/how-to-specify-front-page-in-drupal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal and WAI Accessibility</title>
		<link>http://blog.swamiwebdesign.com/drupal/drupal-and-wai-accessibility.html</link>
		<comments>http://blog.swamiwebdesign.com/drupal/drupal-and-wai-accessibility.html#comments</comments>
		<pubDate>Sun, 10 Feb 2008 13:52:13 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[L2]]></category>
		<category><![CDATA[WAI]]></category>
		<category><![CDATA[WAI Acceswsibility]]></category>

		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/drupal-and-wai-accessibility.html</guid>
		<description><![CDATA[Does Drupal adhere with WAI? In this post I'll explain if Drupal is WAI compatible or not.]]></description>
			<content:encoded><![CDATA[<p>One question people frequently ask is whether <strong><a title="Drupal" href="http://www.SwamiWebDesign.co.uk" target="_blank">Drupal</a></strong> is WAI compatible?</p>
<p>Well the question itself is not quite correct. <strong><a title="Drupal" href="http://www.SwamiWebDesign.co.uk" target="_blank">Drupal</a></strong> is just a framework and no one writes any code to always keep it WAI compatible.</p>
<p>You have to &#8220;Do Extra Work&#8221; to make any website, whether based on <strong><a title="Drupal" href="http://www.SwamiWebDesign.co.uk" target="_blank">Drupal</a></strong> or any open source framework or developed from scratch, to be WAI compatible.</p>
<p>So the question would have been &#8220;Can we make <strong><a title="Drupal" href="http://www.SwamiWebDesign.co.uk" target="_blank">Drupal</a></strong> website using AJAX and Javascript to be WAI L2 compatible?&#8221;</p>
<p>Answer is YES.</p>
<p>Complex part is getting it done, which involves a lot of extra work.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swamiwebdesign.com/drupal/drupal-and-wai-accessibility.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal&#8217;s page serving mechanism</title>
		<link>http://blog.swamiwebdesign.com/drupal/drupals-page-serving-mechanism.html</link>
		<comments>http://blog.swamiwebdesign.com/drupal/drupals-page-serving-mechanism.html#comments</comments>
		<pubDate>Thu, 31 Jan 2008 22:18:40 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/drupals-page-serving-mechanism.html</guid>
		<description><![CDATA[An excellent topic to understand the flow of Drupal&#8217;s page serving mechanism http://drupal.org/node/10858]]></description>
			<content:encoded><![CDATA[<p>An excellent topic to understand the flow of Drupal&#8217;s page serving mechanism</p>
<p><a href="http://drupal.org/node/10858" title="Drupal's page serving mechanism" target="_blank">http://drupal.org/node/10858</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swamiwebdesign.com/drupal/drupals-page-serving-mechanism.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Call to undefined function db_query()</title>
		<link>http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html</link>
		<comments>http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html#comments</comments>
		<pubDate>Thu, 31 Jan 2008 22:16:44 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html</guid>
		<description><![CDATA[How to use Drupal function db_query()]]></description>
			<content:encoded><![CDATA[<p><strong><a title="Drupal" href="http://www.SwamiWebDesign.co.uk" target="_blank">Drupal</a></strong> provides the function db_query() to interact with database.</p>
<p>This function is defined in includes/database.inc file.</p>
<p>You have to include  database.inc in your file to get db_query() working.</p>
<p>&lt;?php include(&#8220;includes/database.inc&#8221;); ?&gt;</p>
<p>However if you are trying to access <strong><a title="Drupal" href="http://www.SwamiWebDesign.co.uk" target="_blank">drupal</a></strong> database from a non-<strong><a title="Drupal" href="http://www.SwamiWebDesign.co.uk" target="_blank">drupal</a></strong> .php file then all you need to do is to include following lines at the top of your file.</p>
<p><strong>require_once &#8216;./includes/bootstrap.inc&#8217;;<br />
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);<br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swamiwebdesign.com/drupal/call-to-undefined-function-db_query.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Drupal Theming &#8211; How to print the attached image?</title>
		<link>http://blog.swamiwebdesign.com/drupal/drupal-theming-how-to-print-the-attached-image.html</link>
		<comments>http://blog.swamiwebdesign.com/drupal/drupal-theming-how-to-print-the-attached-image.html#comments</comments>
		<pubDate>Tue, 29 Jan 2008 22:16:55 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/drupal-theming-how-to-print-the-attached-image.html</guid>
		<description><![CDATA[In this post I'll describe how to print the attached image in Drupal theme.]]></description>
			<content:encoded><![CDATA[<p>If you are modifying Drupal theme and wish to play with attached image then following code might be helpful.</p>
<p>This code prints attached image (to a node) .</p>
<p><em><strong> &lt;?php<br />
foreach ($node-&gt;files as $file)<br />
{<br />
$fileType        = $file-&gt;filemime;<br />
if($fileType == &#8216;image/jpeg&#8217;)<br />
{<br />
$imagePath = $file-&gt;filepath;<br />
$imageTitle = $file-&gt;description;<br />
print &#8216;&lt;img class=&#8221;contentImage&#8221; width=&#8221;100&#8243; height=&#8221;80&#8243; src=&#8221;/&#8217;.$imagePath.&#8217;&#8221; alt=&#8221;&#8216;.$imageTitle.&#8217;&#8221; title=&#8221;" /&gt;&#8217;;<br />
}<br />
}<br />
?&gt; </strong></em></p>
<p>You can modify it as per your requirements.  The above code prints all the attached images.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swamiwebdesign.com/drupal/drupal-theming-how-to-print-the-attached-image.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal pathauto tutorial</title>
		<link>http://blog.swamiwebdesign.com/drupal/drupal-pathauto-tutorial.html</link>
		<comments>http://blog.swamiwebdesign.com/drupal/drupal-pathauto-tutorial.html#comments</comments>
		<pubDate>Mon, 14 Jan 2008 00:52:00 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Drupal pathauto]]></category>

		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/drupal-pathauto-tutorial.html</guid>
		<description><![CDATA[pathauto module could be extremely frustrating for any newcomer to Drupal. pathauto module generates URL automatically based on the pattern which you specify in the configuration. pathauto home page: http://drupal.org/handbook/modules/pathauto First delete the alias settings for the types for which you wish to change pathauto settings. E.g. if you want to change the Category URLs [...]]]></description>
			<content:encoded><![CDATA[<p>pathauto module could be extremely frustrating for any newcomer to Drupal.</p>
<p>pathauto module generates URL automatically based on the pattern which you specify in the configuration.</p>
<p>pathauto home page: http://drupal.org/handbook/modules/pathauto</p>
<p>First delete the alias settings for the types for which you wish to change pathauto settings.</p>
<p>E.g. if you want to change the Category URLs then delete all existing aliases first before making changes or else the new changes will not be reflected.</p>
<p><strong>pathauto configuration for Category </strong></p>
<p>Set the default path setting to be <strong>[vocab-raw]/[cat-raw]</strong> and you will get a very nice hierarchical URL.</p>
<p>See it live on www.SwamiPC.co.uk  &#8211; http://www.swamipc.co.uk/desktop-pc/acer</p>
<p><strong>URL Path Settings</strong></p>
<p>While adding any page/product etc you can specify the name of URL and it will be automatically generated.</p>
<p>Uncheck the Automatic alias box and add the name which you want to be displayed in URL for that item.</p>
<p>E.g. for About us page I specified <strong>about</strong> in URL path settings which gives me URL http://www.swamipc.co.uk/about</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swamiwebdesign.com/drupal/drupal-pathauto-tutorial.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reasons why I don&#8217;t like Drupal</title>
		<link>http://blog.swamiwebdesign.com/drupal/reasons-why-i-dont-like-drupal.html</link>
		<comments>http://blog.swamiwebdesign.com/drupal/reasons-why-i-dont-like-drupal.html#comments</comments>
		<pubDate>Sun, 13 Jan 2008 22:24:03 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/reasons-why-i-dont-like-drupal.html</guid>
		<description><![CDATA[You can either love Drupal or hate it, I'm somewhere in the middle. I love Drupal's capability and I hate Drupal's complexities.]]></description>
			<content:encoded><![CDATA[<p><strong>Reason No. 1</strong></p>
<p>It is not developed by native English speaking people. This is biggest drawback of Drupal which is reflected in almost all aspect of Drupal for which I don&#8217;t like it.</p>
<p>Few years back when I first started exploring Drupal I gave up as I could not understand the way it was written.</p>
<p>On the contrary it just took me 10 minutes to  setup my first Joomla based web site.</p>
<p><strong>Reason No. 2</strong></p>
<p>It is too complex. I&#8217;ve worked with almost all of open source packages and it is undoubtedly the most complex CMS package to work with</p>
<p><strong>Reason No. 3</strong></p>
<p>The contents are not organized as it should have been.  They got nodes then they added taxonomy and topped up with terms, vocabulary etc and all these hotch potch takes all your time to figure out what to put where.</p>
<p><strong>Reason No. 4 &#8211; Ecommerce</strong></p>
<p>They are trying desperately to integrate ecommerce package into CMS. I appreciate the effort and see it is almost coming good, however the basic framework of Drupal itself is not organized and adding ecommerce further makes it complex to glues everything together.</p>
<p><strong>Reason No. 5 &#8211; SEO</strong></p>
<p>Begin SEO guru I always look for an easy way to enable SEO freidnly URLS, keyword etc but Drupal gives me sleepless night in getting it together.</p>
<p><strong>Reason No. 6 </strong></p>
<p>It is slow. It takes time to load after mouse click, it really takes a lot of time.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.swamiwebdesign.com/drupal/reasons-why-i-dont-like-drupal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable displaying Author name and date in Drupal</title>
		<link>http://blog.swamiwebdesign.com/drupal/how-to-disable-displaying-author-name-and-date.html</link>
		<comments>http://blog.swamiwebdesign.com/drupal/how-to-disable-displaying-author-name-and-date.html#comments</comments>
		<pubDate>Sun, 13 Jan 2008 00:14:47 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Author Name]]></category>
		<category><![CDATA[Published Date]]></category>

		<guid isPermaLink="false">http://blog.swamiwebdesign.com/drupal/how-to-disable-displaying-author-name-and-date.html</guid>
		<description><![CDATA[In this post I'l describe how to disable Author Name and published date in Drupal.]]></description>
			<content:encoded><![CDATA[<p class="submitted">You can disable Author name and date appearing on contents from</p>
<p class="submitted">Adminster-&gt;Site Building-&gt;Themes-&gt;Configure-&gt;Global Settings</p>
<p class="submitted">See the <strong>Display post information on</strong> box</p>
<p class="submitted"><strong>Enable or disable the <em>submitted by Username on date</em> text when displaying posts of the following type.</strong></p>
<p class="submitted">
<p class="submitted">You can uncheck the type where you don&#8217;t want it to be displayed.</p>
<p class="submitted">
]]></content:encoded>
			<wfw:commentRss>http://blog.swamiwebdesign.com/drupal/how-to-disable-displaying-author-name-and-date.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

