0

I have a website with two pages. The "home page" and a "notice page". The notice page should only be viewable to people who are logged in or people who have the role called "Basic User". I have created the role, but I cannot find how to set this notice page (basic page) to require log in.

Here is a similar question, but I think it is regarding drupal 6 and I know that a lot has changed when drupal 7 was released.

Set a page to be only viewed by users who are logged in

1 Answer 1

1

There's a usable dev version of Node Privacy by Role for D7.

Alternatively, you could edit the templates for those pages to check a user's role before displaying the content. I can't really think of why you'd want to, but you could.

8
  • Is that really the only solution? I need to download a dev module to not show a page?
    – EGHDK
    Commented Aug 4, 2012 at 19:59
  • @EGHDK It comes in handy if you want more pages to be able to be viewed by authenticated users. Similar module drupal.org/project/nodeaccess
    – GoodSp33d
    Commented Aug 4, 2012 at 20:04
  • What if I only want one page or "content type" to be view-able by registered users?
    – EGHDK
    Commented Aug 4, 2012 at 20:04
  • By default drupal doesnt support it you need a module or a custom piece of code. You should be able to configure node by node.
    – GoodSp33d
    Commented Aug 4, 2012 at 20:06
  • Alright, I appreciate the feedback. Is node_privacy_byrole the "standard" for doing this?
    – EGHDK
    Commented Aug 4, 2012 at 20:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.