Show the node teasers even if the user doesn't have the permission to access the node
Mak - February 4, 2008 - 10:08
| Project: | Content Access |
| Version: | 6.x-1.1 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I want to display all teasers of the node on the frontpage, so the access to the teasers must be permitted, but only if the user wants to read the whole node, he has to register. Is it possible to integrate this feature in the module? Or is there another solution, i didn't found?
Kind regards
Mak

#1
Bump!
I know its been over a year, but now how can I do this for version 6.x?
Basically, I need to display the teaser template: node--teaser.tpl.php
The only way I can display it is by giving everyone access. Although I could redirect non-subscribed users to
drupal_goto('/user/login',NULL,NULL,301);I want to instead utalize LogintoBoggan and redirect a user right back to the node after they log in.So the best solution is for Content Access to just let me show teasers to anonymous users, but the actual content is not shown..
#2
I'd like this, too. Especially within the search results page, since we need to encourage potential members to sign up to get access to protected content.
#3
Subscribing. We'd like to show the menu links and teasers for member only content, but present a login/signup screen when they click on them. Basically to show non-members what they are missing.
#4
looking for same
#5
The case of the node teasers shown in the front page could make sense. The problem is that Drupal doesn't have the concept of node teasers that don't allow the users to pass to the node page.
I mean that when the node teaser is shown, it is always possible to pass to the page that shows the complete node; in the case users don't have access to a specific node, they would get an access not permitted error, and this could confuse them.
I understand what you are asking for, but I am not sure it would be a good idea to implement it.
#6
Well I got around this by creating a page in PHP format, doing a query on the node table, finding the exact nodes I wanted to use (the most recent 3 of a certain type) and then used node_load() to get the information I needed.
I am a Drupal developer, but sometimes even I need to do things the quick and dirty way :)
#7
Can you post the quick and dirty code here as snippet ?
#8
Found a similar thread, not sure which one is a duplicate
http://drupal.org/node/262766
Looking for this functionality as well.
#9
What esend7881 describes in #6 is to completely bypass node access.
This is technically possible, but a module that does that is considered buggy in the Drupal universe, and it's unlikely that you can convince a node access module maintainer to put intentional bugs into his module.
Look at the Premium module.
#10
We use the Premium module for this function. Works simply and well.
#11
What you could do is use the CCK module to make your own content type. If you make a content-type with a Title, Summary and Body field, you emulate the standard page content-type closely enough. CCK forces you to set permissions for each field separately. Generally that's quite a drag (I tend to forget), but in your case that sounds like a solution.