Restrict content on full page views only

catch - April 22, 2009 - 09:27
Project:Restricted content
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

For a client site I need content to appear as normal in teaser listings but show a registration / upgrade message when viewing the individual node. Seems like it'd probably be a setting plus menu_get_object() somewhere to implement.

#1

catch - June 1, 2009 - 12:14
Status:active» needs review

Here's a patch - adds a variable/checkbox to the settings form then checks it in hook_nodeapi.

AttachmentSize
restricted_content_teaser_441396.patch 1.73 KB
 
 

Drupal is a registered trademark of Dries Buytaert.