Tech4Him – Technology with Integrity

A Christian technology chaos wrangler and his thoughts

Force a Frontpage Node in Drupal

Posted by admin On December - 28 - 2007

This tip is handy if you have a need to specify a new frontpage node on your Drupal site and cannot get into the admin pages to change it. You can specify a number of configuration items in the settings.php file for your site.

In this case your are going to set the frontpage configuration. Near the bottom of your settings.php file is a section that is commented our by default for overriding configuration settings. Just add the following code below and change ‘node/1′ to whatever node you want for your new frontpage.

$conf = array ( ’site_frontpage’ => ‘node/1′,);


One big thing not to forget is the comma after the last setting statement.

We ran into this the other day helping somone on #drupal-support irc who had a multisite Drupal setup with subdirectories. He had removed the panels module and the site went belly up.

Blessings


Popularity: 7% [?]

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • PDF
  • RSS
  • Slashdot
  • StumbleUpon
  • Technorati
  • Twitter

Leave a Reply