Is there a way to allow users to maintain private pages? (I am new to drupal).
I am creating a website for sharing some data among families. I want to control certain content type to be "visible to only authors"

I created a role sportsfamily. 4 content types and 3 views.
3 users in a role. Each has their own content. I want to share only 1 view role based. I want only authors to see the content?

In core Access Control, I can select "create" and "edit own X" but there's no way to limit viewing without turning off access to all content, which is a little too extreme.
Any suggestions how I can achieve this?

Comments

vm’s picture

sounds like you either want to use the organic groups.module aka og.module or the mysite.module as the basis of your desire then tie TAC in for finer grained control if necessary.

vm’s picture

Category: task » support
umapen’s picture

Thank you for the quick response
I do not want to create separate groups using OG. I want to integrated with Facebook eventually. But want to keep certain content private visible only to authors?
1. I created role for coaches. Each coach have member details. When I created a view of team list I see other coaches (members) in team list.
2.Another scenario Each coach will have page for strategy, and should be private visible to only authors(coach).
Thanks

panis’s picture

If you are looking to develop a module to do this: use this as a starting point add necessary checks for authors in the code if necessary.
http://api.drupal.org/api/file/developer/examples/node_access_example.mo...

A cheaper alternative - not completely foolproof:

assuming strategy is a cck node called strategy is to override the node template file.
1. Create a node-strategy.tpl.php file in your active theme(s) folders.
2. Copy the default node.tpl.php file into here.
3. at the very beginning of the file you can add a check such as this:

<?php
global $user;
if ($user->uid != $node->uid && $user->uid != 1) {
   //if the user is not the node author and not an admin show them the access denied page  instead
   drupal_access_denied();
}
?>

drawbacks:
- data will still be visible in a "search" unless you can turn off searching for these node types
- you will need to do this for every user selectable enabled theme on the site.
- if you create views and use views via the views module that include strategy nodes - the data will either
- get displayed
- or the user will get bumped off to a access denied page
For example the tracker will display author xx posted new strategy or updated strategy etc.
- there are possibly more that I cannot think of right now.

keve’s picture

Project: Taxonomy Access Control » Drupal core
Version: 5.x-1.0 » 5.x-dev
Component: Miscellaneous » node system

This is not a Taxonomy Access issue.
I change project to Drupal.

scoutbaker’s picture

There are 2 contrib modules that might work: Private and Private nodes.

ainigma32’s picture

Status: Active » Fixed

Solutions are provided.

- Arie

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.