By jsaints on
Any ideas on how I could begin to create a new permission that allows certain users to access the node->teaser and not the full node->body?
I am currently looking at adding and additional permission to node_privacy_by_role module. It seems, however, that nodes only know one permission "view" for both body and teaser. This complicates things... how could I differentiate between requests for full bodies and only teasers?
Any thoughts welcome
Comments
same here
I was wondering about the same thing.
There are different ways to set permissions for different users but now need a way to set permissions seperate for teasers and normal body.
I would like people to read a teaser but have to register to read the whole article. Any ideas ?
Please let us know.
Building great webblog portals & communities
First attempt at a solution
Here is a module for testing that allows nodes to be designated as premium. Teasers of "premium" nodes are visible to all, while node bodies of "premium" content can only be viewed by privileged users.
Contact me for the code.
premium content module
I have received multiple requests for this code. I am applying to create the project within Drupal modules so that I can be better managed and developed by the community.
Until the project is up, please contact me for the code.
teaser code
I did an install of your premium module (download from somewhere) but see no teaser ability.
Does your module come with the teaser option, included into the premium module?
If so, I am interested in the code.
Building great webblog portals & communities
Premium
Hi,
I would like to test out the module, would you send me the code?
I was wondering: I have a node, that accessible for some users, and not accessible for some others. Setting the node as "premium" will allow anyone to see the teaser, especially in taxonomy listings? That's what I need ... tnx!
I am interested in the premium content module
I would like to have a permission to assign to roles for viewing the teaser. Can you send me the module? Thank you so much for your work!!!
Interesting that there is
Interesting that there is another thread doing the rounds with exactly this same question. You can see my suggested solution here:
http://drupal.org/node/29174#comment-53511
questions about premium module
Thank you for writing the premium module. I've installed. However, either I'm not using it correctly, or it does not do what I want.
The one I installed has a readme.txt by Weitzman. It seems to be a March 2006 update by Weitzman for 4.7.
It does not restrict seeing the node if you know the node number. An user who knows the node number can still view the content.
Restriction is by node type. For example, anon cannot view nodes of the "story" type. This is cumbersome in that there is no admin interface to change node type.
Am I correct in thinking this is how the module is supposed to work? I think we still need one where the admin can set whether a node is restricted, without having to change its node type.
Drupal ecommerce, at http://www.drupalecommerce.com
drupal 6 ideas
Hi
In drupal 6.6 you can create hook_access and you will be in control of access but only if your module is node type manager module.
We have to implement custom permissions to different parts of the system and different custom screens based on wired custom logic. We added a bunch of extra cck fields and wanted to have same workflow and permissions on all the types.
The best solution we found was to actually add one bit of code in node_access function in node.module just before the node type manager is asked:
without it, we just could not see any hope to implement our permissions which depend on content types, extra fields, user roles and some of the field values.
As a side effect we got content that is visible in views (you see teaser and title) but cant see details of it, which is fine. Maybe thats some help?
- Eny one knows is there any way to actually hook your custom permissions across all node types without that hack? (node api does not seem right as its purpose is different).
- How would i restrict access to teaser if i wanted to? so that it would never appear if i cant see the document? we did not implement it but just wondering.
Art
--------
http://artur.ejsmont.org
Functionality built in
Looks like you can do this by allowing anonymous users to view views with teasers in them, but restrict access to anonymous users by setting the access permissions per content type.
More info here:
http://planningdrupalsites.com/feeditem/exploring-node-access-drupal?page=3
Module
Actually, looks like this module does the trick:
http://drupal.org/project/nopremium