I have configured a drupal site to share knowledge in my company. It is not really classified information but not all of the information needs to be public available. So i would like to have a logon screen as the drupal frontpage. Is this possible? I have tried to do this by denying anonymous ' node acces' but it doesn't exactly do what i would like to see.

Any suggestion is welcome!

Thank you.

Comments

gnat’s picture

a little detail about what you want the site to do would help folks brainstorm possibilities.

in general you could create a node that is promoted to the front page, which either a: has a login form. b: has a link to /user/login or c: directs users to login via the block.

there are a bunch of other things that you could do. but let us know what you want to do, so we can tell you how possible that is.

Dublin Drupaller’s picture

Hi Otrebor,

This might help get you started:

a) You can specify who can see what pages on your website by simply setting up new USER ROLES and going to

ADMINISTER -->> USERS -->> CONFIGURE -->> PERMISSIONS

(You setup roles under administer - users - configure and apply them in the users account.)

if that doesn't give you the flexibility you need. for more advanced control you could use the Taxonomy Access Control module..which allows you to specify in more detail which categories of information can be viewed by which roles. (you simply put your nodes in specific categories and use the module to toggle access for for specific user roles)

http://drupal.org/project/taxonomy_access

B) If you just want a login box on your site for people not logged in...simply go to ADMINISTER -->> BLOCKS and switch on the USER LOGIN block and positon left/right etc. It obviously disappears when someone is logged in.

On the same subject, a module that maybe useful is the Front Page Module, which allows you to specify a front_page or splash page to your site specific for users already Logged in and a different one for visitors not logged in.

http://drupal.org/project/front

Hope that makes sense and is of use..

Dub

DUBLIN DRUPALLER
___________________________________________________
A drupal user by chance and a dubliner by sheer luck.
Using Drupal to help build Artist & Band web communities.

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

matteo’s picture

Here you can find a very simple implementation of a security module that lets you specify private/public access based on roles.
Hope it helps

Matteo

Otrebor’s picture

Thank you for your suggestions. I think i have resolved this issue. As suggested I denied anonyous access to content. Only authenticated users are allowed. I made all of the blocks (except login ) custom for users so with the correct settings in the user profiles they will see the blocks when logged on.

As far as i can see this will do the job for me. The only drawback seems to be the manual adjustment of user preferences to make blocks visible. There is no template for users preferences.

Thanks
Rob.

Dublin Drupaller’s picture

There is a few modules that allows users to specify what appears on their page...such as blocks...similar to the way when you enable a few themes a user can choose his/her own preference under the "MY ACCOUNT" settings.

there are a few different modules with slightly different functions..I think mypage.module might be the one you could use...

Worth checking the modules folder on here for other similar modules.

Dub

DUBLIN DRUPALLER
___________________________________________________
A drupal user by chance and a dubliner by sheer luck.
Using Drupal to help build Artist & Band web communities.

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

Otrebor’s picture

Thank You, I will try that one!

Rob.

francewhoa’s picture

Loving back your Drupal community result in multiple benefits for you