I need to create a block with some data on profile page user/*
I created 3 Views blocks, each block has to be shown on user's page by role
The site has 3 roles: Role-0 higher with block-0 Role-1 middle with block-1 Role-2 lower with block-2
Role-0 users have to have a block-0 block on their profile page (user/3, user/7, user/15, etc)
Role-1 users have to have a block-1 block on their profile page (user/4, user/8, user/19, etc)
Role-2 users have to have a block-0 block on their profile page (user/5, user/11, user/35, etc)
in two words each Role has its own block but have not to be shown on others roles' page
if I visit user/3 I have to see block-0 only if I visit user/4 I have to see block-1 only if I visit user/5 I have to see block-2 only
I tried to restrict access by role but now Role-0 can see 3 blocks on the same page, some empty some filled, etc..
any idea?
On Lun, 27 Luglio 2009 2:36 pm, Francesco Baldini wrote:
I need to create a block with some data on profile page user/*
I created 3 Views blocks, each block has to be shown on user's page by role
The site has 3 roles: Role-0 higher with block-0 Role-1 middle with block-1 Role-2 lower with block-2
Role-0 users have to have a block-0 block on their profile page (user/3, user/7, user/15, etc)
Role-1 users have to have a block-1 block on their profile page (user/4, user/8, user/19, etc)
Role-2 users have to have a block-0 block on their profile page (user/5, user/11, user/35, etc)
in two words each Role has its own block but have not to be shown on others roles' page
if I visit user/3 I have to see block-0 only if I visit user/4 I have to see block-1 only if I visit user/5 I have to see block-2 only
I tried to restrict access by role but now Role-0 can see 3 blocks on the same page, some empty some filled, etc..
Solved adding a Filter on Views: User: Role