Hi everybody!

I created a node and specified it to be the front page. The node says that it is mandatory to log in before one is able to access any data. Unfortunately, once a user is logged in, it's still the same message on the front page. How can I create a front page for authenticated users? I already googled this and found the module "front page." Unfortunately, it does not work with me: I successfully created a front page for authenticated users. However, the one I created for guests is not being displayed. It only says "Access denied" on the front page once I logged out. But for such a simple project I don't really feel like using a module anyway. Drupal is considered community-friendly, so there must be a way to do it in Drupal. Please show me. I am really getting annoyed from having trouble with such stupid problems!

Thanks in advance!

Comments

Bobby1290’s picture

A simple option would be to use the triggers module and the actions module (both stock drupal).

In the actions module "make an advanced action available" 'Redirect to URL...'. and specify the node you want to redirect to (front page for authenticated users).

In the triggers module click on the 'Users' tab, and in 'Trigger: After a user has logged in' select the redirect action you just created.

Simple, and only using stock drupal.

PS. for the permissions issue, just make a block, assign it to be viewed on the front page for anonymous only. In that block use a snippet to show the contents of a node (the node that tells you to log in) or make that 'node' in the block.

anonymous -> no permission to view content
authenticated -> view content.

vm’s picture

check permissions for front page.module

another method would be to use a custom page-front.tpl.php file for the theme that would only get used on the front page.

Using node as the front page, may cause issues if anon users don't have permissions to view content. Essentially a front page created with a node is content.