how to create disclaimer page

boytaichi - March 28, 2008 - 16:28

hi,
can someone tell me how to create a front page (for site disclaimer), and at same time block anonymous users from accessing other contents? if i block the access, then all pages i created can not be viewed.
thanks.

The legal module

nicholasbarcomb - March 28, 2008 - 17:37

page-front

silverwing - March 28, 2008 - 17:40

one way it to create a page-front.tpl.php (copy the page.tpl.php) and add your disclaimer directly to that. It'll appear for annoymous users (but you can add conditions to it so it doesn't appear for registered users.) Or add a block to the front page for anonymous users with the disclaimer.

~silverwing

_____________________________________________
Land of Midnight | MisguidedThoughts | showcaseCMS

frontpage module

rp_praveen - March 28, 2008 - 19:05

check out the Front Page Module http://drupal.org/project/front

You can configure a page to be displayed for all non-authenticated users will see when they visit xample.com

Once they login they will have a new front page. Might be just what you need. You can also configure different pages for different roles ? Don't hold me to that, been awhile.

thanks

boytaichi - March 29, 2008 - 15:34

this is a really good solution. it makes front pages separately for anonymous and non-anonymous users. thanks very much.

i have one more question. what do i do if i don't want the primary links from appearing on the front page of anonymous user (i used the same theme as the site)? i tried to disable anonymous user access to the primary links through admin/site building/menu. but it has no effect.

note permision vs. front page

boytaichi - March 29, 2008 - 18:23

another question is that how to not permit anonymous users the access to node content, while letting them see front page?

permission

rp_praveen - April 1, 2008 - 01:34

So your question is, You want a Front Page, that displays different types of content. But one or two types of content you would like to restrict from anonymous users?

Using the Front page module to create this would not be easy. Theres a few way, one way you would have to insert custom theme code into the body area that would print a certain embedded 'view'.
Not using the Frontpage module, you would set the content type access in the admin/user/access

hmm

rp_praveen - April 1, 2008 - 01:22

Yeah I would think to accomplish that, you would have to insert custom code into the body area. Perhaps opening the node.tlp.php file copying the code, and delete out the

<?php
print theme('links', $primary_links, array('class' => 'links', 'id' => 'navlist'))
?>
...

 
 

Drupal is a registered trademark of Dries Buytaert.