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.

CommentFileSizeAuthor
#1 restricted_content_teaser_441396.patch1.73 KBcatch

Comments

catch’s picture

Status: Active » Needs review
StatusFileSize
new1.73 KB

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

dave reid’s picture

Status: Needs review » Needs work

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