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
Comment #1
vm commentedsounds 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.
Comment #2
vm commentedComment #3
umapen commentedThank 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
Comment #4
panis commentedIf 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:
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.
Comment #5
keve commentedThis is not a Taxonomy Access issue.
I change project to Drupal.
Comment #6
scoutbaker commentedThere are 2 contrib modules that might work: Private and Private nodes.
Comment #7
ainigma32 commentedSolutions are provided.
- Arie