Community

How to ensure homepage access on a website restricted, forcing the login or register?

Hi.

I'm building a site where I wish to assure access to content only to authenticated users. But I wish that users could see the teasers on the homepage. If the user clicks on a link, I want it displayed a modal login, as Shadowbox Login window.

I tried to do this, but when I disable access to content for unauthenticated users, all teasers are hidden in the homepage, which is empty. Furthermore, when the user clicks in a menu item, it is directing to the login page, rather than appears a modal window.

I already use the Shadowbox module (for login window and images) and Login Toboggan (to redirect the user to the home page after login).

My question: Is it possible to restrict access to content pages, allowing, however, that unauthenticated users can view content from Homepage?

And more, as I do so that when an unauthenticated user click on a link, a modal window is displayed with the fields to login/register?

Any help or guidance will be appreciated.

Thank you in advance.

nobody click here