I'd like to have a simple front page with logo, user login block and an image or two. No main menu links (tabs). Once a user logs in, the site should open up to all of the pages and functionality not seen on the login page. How do I do this?

Comments

vm’s picture

one option is to copy page.tpl.php and use it to create a custom page--front.tpl.php file in your theme. Remove from page--front.tpl.php those things you don't want rendered and include those things you do. Create a region for the login block, define it in the theme .info file. Add the block to the newly created region in administer -> blocks.

another option would be to investigate contexts with the context.module
and another option would be to investigate panels with the panels.module
and still another option would be to investigate the front.module

cdnsteve’s picture

I've done this, not with Facebook or LinkedIn however but with another login based site.

Required modules:
Omega theme
Context
Delta
Views
Some type of access control
Custom version of r4032login

How I did it:
All content is locked down.
r4032login redirects all non logged in users to login, even if they try to get to a certain page.

Create a new delta:
In here I have create a content region and shown only what I need (custom login page).

Context
Checks User Role must be anonymous user
It then has a rule to activate a delta, which is basically a copy of your theme functionality: (Homepage login)

The login is set to forward the user to /frontpage which is a view, it requires authenticated permissions to view.
Once a user is logged in, the redirect module forwards to the /frontpage (main page) and permissions are verified and they're in.

If you need more details let me know. This is more of a complex implementation I have in place but I'm sure there are also others interesting in doing it.

sjc42002’s picture

your input has been very helpful and I've gotten pretty close to what I want using the r4032login, Delta and Context. I haven't used the Views or Omega theme yet.