How to specify front page in Drupal?

Ajay on June 28th, 2008

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.

Bookmark and Remember: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • Sphinn
  • Facebook
  • Mixx
  • Google
  • Live
  • YahooMyWeb
  • Technorati
  • blinkbits
  • TwitThis
  • BlinkList
  • StumbleUpon
  • Spurl
  • PlugIM
  • blogmarks
  • Blue Dot
  • TailRank
  • Fark
  • Blogsvine
  • Netvouz
  • NewsVine
  • ppnow
  • Ma.gnolia
  • Taggly
  • MisterWong
  • Simpy
  • Propeller
  • Slashdot
  • Pownce
  • Bumpzee
  • co.mments
  • Blogosphere News

Subscribe to this blog's RSS feed

Drupal and WAI Accessibility

Ajay on February 10th, 2008

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 [...]

Bookmark and Remember: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • Sphinn
  • Facebook
  • Mixx
  • Google
  • Live
  • YahooMyWeb
  • Technorati
  • blinkbits
  • TwitThis
  • BlinkList
  • StumbleUpon
  • Spurl
  • PlugIM
  • blogmarks
  • Blue Dot
  • TailRank
  • Fark
  • Blogsvine
  • Netvouz
  • NewsVine
  • ppnow
  • Ma.gnolia
  • Taggly
  • MisterWong
  • Simpy
  • Propeller
  • Slashdot
  • Pownce
  • Bumpzee
  • co.mments
  • Blogosphere News

Continue Reading...

Drupal’s page serving mechanism

Ajay on January 31st, 2008

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”>

Bookmark and Remember: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • Sphinn
  • Facebook
  • Mixx
  • Google
  • Live
  • YahooMyWeb
  • Technorati
  • blinkbits
  • TwitThis
  • BlinkList
  • StumbleUpon
  • Spurl
  • PlugIM
  • blogmarks
  • Blue Dot
  • TailRank
  • Fark
  • Blogsvine
  • Netvouz
  • NewsVine
  • ppnow
  • Ma.gnolia
  • Taggly
  • MisterWong
  • Simpy
  • Propeller
  • Slashdot
  • Pownce
  • Bumpzee
  • co.mments
  • Blogosphere News

Continue Reading...

Call to undefined function db_query()

Ajay on January 31st, 2008

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 [...]

Bookmark and Remember: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • Sphinn
  • Facebook
  • Mixx
  • Google
  • Live
  • YahooMyWeb
  • Technorati
  • blinkbits
  • TwitThis
  • BlinkList
  • StumbleUpon
  • Spurl
  • PlugIM
  • blogmarks
  • Blue Dot
  • TailRank
  • Fark
  • Blogsvine
  • Netvouz
  • NewsVine
  • ppnow
  • Ma.gnolia
  • Taggly
  • MisterWong
  • Simpy
  • Propeller
  • Slashdot
  • Pownce
  • Bumpzee
  • co.mments
  • Blogosphere News

Continue Reading...

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 [...]

Bookmark and Remember: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • Sphinn
  • Facebook
  • Mixx
  • Google
  • Live
  • YahooMyWeb
  • Technorati
  • blinkbits
  • TwitThis
  • BlinkList
  • StumbleUpon
  • Spurl
  • PlugIM
  • blogmarks
  • Blue Dot
  • TailRank
  • Fark
  • Blogsvine
  • Netvouz
  • NewsVine
  • ppnow
  • Ma.gnolia
  • Taggly
  • MisterWong
  • Simpy
  • Propeller
  • Slashdot
  • Pownce
  • Bumpzee
  • co.mments
  • Blogosphere News

Continue Reading...

Drupal pathauto tutorial

Ajay on January 14th, 2008

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 [...]

Bookmark and Remember: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • Sphinn
  • Facebook
  • Mixx
  • Google
  • Live
  • YahooMyWeb
  • Technorati
  • blinkbits
  • TwitThis
  • BlinkList
  • StumbleUpon
  • Spurl
  • PlugIM
  • blogmarks
  • Blue Dot
  • TailRank
  • Fark
  • Blogsvine
  • Netvouz
  • NewsVine
  • ppnow
  • Ma.gnolia
  • Taggly
  • MisterWong
  • Simpy
  • Propeller
  • Slashdot
  • Pownce
  • Bumpzee
  • co.mments
  • Blogosphere News

Continue Reading...

Reasons why I don’t like Drupal

Ajay on January 13th, 2008

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 [...]

Bookmark and Remember: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • Sphinn
  • Facebook
  • Mixx
  • Google
  • Live
  • YahooMyWeb
  • Technorati
  • blinkbits
  • TwitThis
  • BlinkList
  • StumbleUpon
  • Spurl
  • PlugIM
  • blogmarks
  • Blue Dot
  • TailRank
  • Fark
  • Blogsvine
  • Netvouz
  • NewsVine
  • ppnow
  • Ma.gnolia
  • Taggly
  • MisterWong
  • Simpy
  • Propeller
  • Slashdot
  • Pownce
  • Bumpzee
  • co.mments
  • Blogosphere News

Continue Reading...

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 [...]

Bookmark and Remember: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • Sphinn
  • Facebook
  • Mixx
  • Google
  • Live
  • YahooMyWeb
  • Technorati
  • blinkbits
  • TwitThis
  • BlinkList
  • StumbleUpon
  • Spurl
  • PlugIM
  • blogmarks
  • Blue Dot
  • TailRank
  • Fark
  • Blogsvine
  • Netvouz
  • NewsVine
  • ppnow
  • Ma.gnolia
  • Taggly
  • MisterWong
  • Simpy
  • Propeller
  • Slashdot
  • Pownce
  • Bumpzee
  • co.mments
  • Blogosphere News

Continue Reading...