OK, I have my new Drupal 4.5 site up and running. I would appreicate your guidance on how to tailor the "home page" displayed to anonymous visitors when they first arrive at the site. I've been poking around, but it seems the only way to do this is to change the code that generates it in the node module. In the interest of easing upgrades to future releases, I would like to avoid changing any of the code in the distribution. So is there anyway to create a static page in 4.5 that is displayed to visitors before they login / register with the site?

Thanks!

Radi

Comments

Dublin Drupaller’s picture

Hi Radi,

The front_page.module should help...

It allows you to easily specify a custom home page for anonymous visitors and an alternative home page for logged in users.

http://drupal.org/files/projects/front-cvs.tar.gz

Hope it's of use..it's designed for 4.5.0.

Jason

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

jaskegreen’s picture

I thought this would be helpful for my site and it is -- kind of. I like the way it works for the annonymous user, but I want the other users to see the front page node I had before I had it point to the front_page module.

I am trying a work-around by writing an include statement:
include"index.php?q=node";

It doesn't seem to be working though. Is there something else I can use? Or maybe, could you modify the module to allow for this option?

Thanks,
Jason (also)

Dublin Drupaller’s picture

good idea...

Have updated the front_page.module jason...does exactly what you asked for..

http://drupal.org/node/14439

Hope it's of use..

Jason..

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

NaSPA1’s picture

Jason - This is real close to what I was looking for. It does a beautiful job of presenting an alternate HTML page for anonymnous visitors. But it would be great if there was an option for it to call/redirect another Drupal module for logged in users. That way anonymous visitors would get the html screen, and a logged in user could still get the "standard" display from node or other Drupal module.

For the time being, I'm using a messy alternative by coding a redirect intot the html for a logged in user.

Thanks!

Radi

Dublin Drupaller’s picture

Have updated the front_page.module to do exactly what you asked for Radi...

http://drupal.org/node/14439

Jason

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

NaSPA1’s picture

It's working perfectly!

Thanks again!

Radi

charybdis’s picture

If the user logs into the system once on the site, Drupal dumps them to node regardless of what redirects the site owner has built into Drupal itself or Front_page.

Excellent module though ;-)

I have a website. It's very blue indeed.