Hey, I have been working on a site, and after some tinkering and searching on google found some code that would allow me to have a custom index page, the code is strait from the lulabot web site, but for some strange reason it won't let you login or view other nodes instead it just comes up with a blank page. Any Thoughts....
Heres the code:

<?php
function _phptemplate_variables($hook, $vars = array()) {
  switch ($hook) {
    case 'page':
      global $user;
      if ($vars['is_front']) {
        $vars['template_file'] = 'page-index';
      }
      break;
  }

  return $vars;
}
?>

Comments

mz906’s picture

make sure you have a file named: "page-index"

also you can just try using the $is_front (which they might speak about on the lullabot site)

something like this:

 if ($is_front){
include (front-page.tpl):
return
}
Squalls_Dreams’s picture

would you put this in your page.tpl.php file alone?

`~Squalls_Dreams~`

vm’s picture

http://drupal.org/node/29132 may help

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )