Hello everybody!

I got a question on how to manage content with Drupal. Right now I am working on a private community where everybody who is a registered user should be able to create content that is only readable (is that a word?) by other members. Therefore created a new content type which I was hoping to be able to give the attitute "only readable by authorized users." Can anybody give me a hint on how to do that?

Thank you very much in advance!

idontknow

Comments

profjk’s picture

Set node access content yes (with a tick mark) to authenticated users, but not for anonymous users in the admin control panel.

profjk’s picture

You do it at Administer/user managent/permissions

idontknow’s picture

Thank you very much for your quick answers. Unfortunately, there is some content that I want to display on the front page, readable by guests and registered users. If I turn off node access for guests in general I can't do his anymore. Therefore I figured that it would be the smartest to create to different content types. One that is accessible by everyone, and another one that's members-only. But doing it that way was just an idea. I am open to other ideas.

Thanks in advance!

idontknow

profjk’s picture

Sure you can do it that way.
Or, if it is a small piece of info you can post it into a block and control access to the block.

Good luck.

idontknow’s picture

Well, I am sure I can do it that way, I just don't know how. How can I specify accessbility for a content type?

profjk’s picture

If its the front page, I would go the block way!

idontknow’s picture

You know what? I just realized that this is actually a brilliant idea! Thanks!

idontknow’s picture

Alright. I did now set the permissions for nodes that way: Only authenticated users can see them. My front page message is now expressed as a block. The only problem is the following: I have not just my new created block but also this stupid "Access denied"-phrase on my front page. - Of course, as a guest you don't have access to the stuff that on the front page for registered users.

idontknow’s picture

That's tricky, he?

kenorb’s picture

http://www.drupal.org/project/view_own
You can set permission which role can view which content type.

idontknow’s picture

That's a great module. I like that. Thank you.

Now, just out of curiosity, does anybody know how I can prevent the "Acces denied"-message from appearing on my front page? Maybe I should start a new topic on that one...