Show Block on Frontpage based on login

Show Block on Frontpage based on login

by Deleted user -
Number of replies: 1
Hi --

I want to have two different HTML blocks and then show one or the other based on the person who is logged in. When I click Assign Roles I get the Assign Roles page but the list of users is empty (0 potential users). Is there a way to control if a Frontpage block shows based on user?

Thank you!
Average of ratings: -
In reply to Deleted user

Re: Show Block on Frontpage based on login

by Ann Adamcik -
Sure. Assuming your default role is 'Authenticated user', turn editing on and click the roles icon on the block that you want shown only to logged in users. Select the Override roles tab and choose the Guest role. Set the View block capability to Prevent. Now only logged in users will see that block. If you want a block to show only to non-logged in users, override the Authenticated user role on that block and set View block to prevent.
Average of ratings: Useful (2)