Download & Extend

Restrict content on full page views only

Project:Restricted content
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

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.

Comments

#1

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

#2

Status:needs review» needs work

Needs an addition to restricted_content_var() as well. Seems like it should be TRUE by default?