Is it possible to define different index pages which are shown to different user-roles? I have 6 different roles on my drupal and I want to define different start-pages for each role...

Best regards
df8oe

Comments

rahulbile’s picture

Hey buddy why dont you use front module.. whic allows you to select the different page for different roles..
Cheers. :)
Frontpage
Rahul... Beyond Imagination!!

Cheers

df8oe’s picture

Good idea :) I haven't recognized this module before...

But I think I do something wrong...

I have defined different pages for every role. When I visit the site as guest, the selected page loads - but in the browsers address-bar appears http://www.mydomain.com/node/1

When I log into the site as user (role 'member'), still http://www.mydomain.com/node/1 is in the addres-bar, so that still the guest-start-page is loaded. When I am logged in and I type http://www.mydomain.com, the corresponding (and correct) start page is loaded.

The problem is that when I call the site there is added "/node/1" in the browsers URL.....

Is there a solution to show IMMEDIATELY the defined start-pages when a user logs in?

Greetings
df8oe

rahulbile’s picture

i might be because in ur admin/settings/site-information , the default frontpage might be node/1 just check it..........

Cheers

df8oe’s picture

The solution was module "login destination". There you can put a small php-snipplet to define conditions of redirection...

Greetings from Germany
df8oe

WorldFallz’s picture

for future reference-- this can also be done with the rules module which is far more flexible than login destination. if you're going to use the rules module anyway, then you don't need login_destination as well.