How to specify front page in Drupal?
In Drupal it is little tricky to specify which page would be home page.
You can specify which page you would like to be shown as home page from Admin->Settings->Site Information
admin/settings/site-information
In the Default front page: enter the node which you would like to make to be displayed on front page.
this value should be node/1 or any node which you wish to make home page.
Subscribe to this blog's RSS feed
Drupal and WAI Accessibility
One question people frequently ask is whether Drupal is WAI compatible?
Well the question itself is not quite correct. Drupal is just a framework and no one writes any code to always keep it WAI compatible.
You have to “Do Extra Work” to make any website, whether based on Drupal or any open source framework or developed [...]
Drupal’s page serving mechanism
An excellent topic to understand the flow of Drupal’s page serving mechanism
http://drupal.org/node/10858
Bookmark and Remember:
These icons link to social bookmarking sites where readers can share and discover new web pages.
u=http%3A%2F%2Fblog.swamiwebdesign.com%2Fdrupal%2Fdrupals-page-serving-mechanism.html&title=Drupal%27s%20page%20serving%20mechanism” title=”Blue Dot”>
Call to undefined function db_query()
Drupal provides the function db_query() to interact with database.
This function is defined in includes/database.inc file.
You have to include database.inc in your file to get db_query() working.
<?php include(”includes/database.inc”); ?>
However if you are trying to access drupal database from a non-drupal .php file then all you need to do is to include following lines at the [...]
Drupal Theming - How to print the attached image?
If you are modifying Drupal theme and wish to play with attached image then following code might be helpful.
This code prints attached image (to a node) .
<?php
foreach ($node->files as $file)
{
$fileType = $file->filemime;
if($fileType == ‘image/jpeg’)
{
$imagePath = $file->filepath;
$imageTitle = $file->description;
print ‘<img class=”contentImage” width=”100″ height=”80″ src=”/’.$imagePath.’” alt=”‘.$imageTitle.’” title=”” />’;
}
}
?>
You [...]
Drupal pathauto tutorial
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 then delete all existing [...]
Reasons why I don’t like Drupal
Reason No. 1
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’t like it.
Few years back when I first started exploring Drupal I gave up as I could not understand the way it was written.
On the contrary [...]
How to disable displaying Author name and date
You can disable Author name and date appearing on contents from
Adminster->Site Building->Themes->Configure->Global Settings
See the Display post information on box
Enable or disable the submitted by Username on date text when displaying posts of the following type.
You can uncheck the type where you don’t want it to be displayed.
Bookmark and Remember:
These icons link to social bookmarking sites [...]


































