Closed (works as designed)
Project:
Taxonomy Access Control Lite
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2008 at 21:23 UTC
Updated:
8 Jan 2010 at 15:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
Dave Cohen commentedFor this sort of thing you have some options like the premium content module. Or, create your own content type and implement hook_access with the logic you need.
There's no feature like this in tac_lite.
Comment #2
henns20 commentedWell - I have used the content_access module which seems to have this behavior by default...but this is more of a taxonomy access need. Reason being for content pieces like a forum and event content types....you really can only have one content type for these... Thanks for the suggestions.... I will check out the premium content module...
My sense is that you don't see it as a easy feature to add if one wanted to... if i got a sense that it would be a straight forward addition to this module to have that feature...i was thinking about trying my hand at doing it...
Comment #3
Dave Cohen commentedDrupal has two mechanisms for access control. One is the node_access table in the database. This table can be joined in SQL queries so that hidden content is completely hidden. For example, never showing up in views.
The other mechanism is hook_access, where PHP code can define logic to allow or deny a user to view or edit content. One drawback with hook_access is that it's available only to modules which define a content type. So third-party modules have trouble using it.
tac_lite uses only the node_access mechanism. I don't think it should do any more than that because (a) it would be less lite, and (b) I don't think there's much need for viewing the title without accessing the node (more people would consider it a bug than a feature).
There may be other modules that do just what you want. Or, you could write your own module with a hook_nodeapi that does what you want.
Comment #4
henns20 commentedgreat response - will look at other routes - not a must right now thanks:)
Comment #5
carlclancy commentedI really need this feature!
Would it really make the module much less "lite"? I can imagine it's fairly common that someone would want to be able to show a list of premium content without granting access to it.
Either way, great module Dave.
Comment #6
JStarcher commentedI've created a patch that will give out the title and teaser but nothing else. The nodes are also viewable in Views when you enable the new option. It requires a core patch but there wasn't much I could do. The core patch just adds hook_access to the nodeapi, nothing crazy.
Comment #7
JStarcher commentedHad a spelling error if anyone is worried about it attached is the corrected patch. Also didn't realize this ticket was talking about the 5.x version, my patch is for the 6.x version.
Comment #8
JStarcher commentedComment #9
Gabriel R. commentedThis looks useful, hope it'll make it into Drupal itself.
Comment #10
Nico_0 commentedI have installed the patch,
and it works for the purpose I wanted, to show titles and teasers in views.
However all of my nodes who used to be visible for anonymous users are hidden now..
What did I do wrong?