I made an page (node) with an introduction to my site.
This first page I want to show to visitors of my site.
Only after registering for this site, these autenticated users should see the other content (existing of several nodes, pages, images, forums)
So I wonder, and have been searching and searching, but I do not have the answer to the question::
"How show only 1st page to anonymous users?"
Do you? thanks you for your time

(the site where I will use this is www.gbb1.org/haers)

Comments

magnusprime’s picture

I did this using 4.7.5 awhile back... I used the frontpage module and the view module.

Basically, I set it up that anonymous users had no access in access control, not to even view a node.

Then I used the default frontpage page view from the view module, and using the frontpage module, set it to be my default front page instead of /node.

Then, when users came to my site, they saw the front page as all users do, but when they tried to read more, they had to login or register.

Then, I upgraded to 4.7.7 and got new views and frontpage modules, and the above no longer works. Basically, anon no longer had access to the frontpage view.

I have never yet found away around this.

But there alot more experienced users here than me who may have.

Anonymous’s picture

For anon users you could display for example node/5
For auth users you could display node.

In your page.tpl you could check if the user is logged in ($user->uid >0). If that is the case you could redirect to the node page, otherwise to node/5 page.

-----------------------------------------
Joep
CompuBase, Drupal websites and design

arzajac’s picture

I still use the frontpage module in 5.2 and it still does what it supposed to do. You can disallow anonymous users from accessing content altogether while still showing a pretty front page.

Another way about it is to allow access to some content types but not others. You can't assign fine-grained (per node) access unless you use something like taxonomy access control, but you can have your front page be one content type other than the rest of the content types on your site.