Node Option Premium: full Drupal content for specific users only

tutuploadstutuploadsmedia_1347387905812.png

Node Option Premium is a module for people who want to encourage visitors to register on their site.

Node Option Premium lets you show a content teaser to the public but show the full content only to people who are logged in and have a certain role. This is typical of the strategy used by many newspapers and magazines with their paywall.

In this tutorial, we’ll demonstrate how to use this simple, yet effective module.

Step #1. Install Node Option Premium

Step #2. Configuration

The main task of configuration is to add messages for each content type. There’s a sample already filled in for you, which will be displayed for all content types. However, you might want to customize it for specific types, for example: “Full content of this page is only available to paid subscribers. Click here to join our site and get full access to these articles” or videos or pages, etc. Simply write the custom message in the appropriate field. You can use HTML to make Click here an active link.

tutuploadstutuploadsmedia_1347387905812.png

Step #3. Permissions

  • Go to People > Permissions
  • There is a set of permissions specifically for Node Option Premium as you can see below.
tutuploadstutuploadsmedia_1347388409734.png

Here’s what you need to know about these permission options:

Who can fully view a premium node of a particular content type? 

  • Any user with the View full premium content permission 
  • Any user with the administer nodes permission
  • The author of the node
  • Any user with the edit any NODE_TYPE content permission

Step #4. Set up the content type

  • Go to Structure > Content types and create or edit a new content type.
  • Go to the Edit tab

I’m going to edit the Article content type. The goal is to make it so the public will be able to read the teaser, but when they click to read more, they’ll get the message that we defined during configuration. 

  • Click the check box next to Premium Content.
    Click Save content type.

tutuploadstutuploadsmedia_1347391015295.png

Step #5. Set up the teaser

Because we’re showing both the teaser and the full content in different ways, we need to make sure that the teaser is showing:

  • Go to the Manage Display tab.
  • Expand Custom Display Settings.
  • Click the box next to Teaser.
tutuploadstutuploadsmedia_1347391410144.png
  • Go to the Manage Display tab.
  • Click the Teaser button.

tutuploadstutuploadsmedia_1347391222707.png
  • Click the gear icon on the Body row.
  • That will allow you to edit the length of the teaser.

tutuploadstutuploadsmedia_1347391563177.png
  • Set the Trim length. I set the teaser to 25 characters. That will make the read more link appear after a very short teaser. The default of 600 is kind of long. You may not want that much of a teaser before the link.
  • Click Update
  • Click Save after the update

tutuploadstutuploadsmedia_1347391593973.png

Step #6. Mark the content as premium content

  • Go to Content
  • Add an Article or whatever content type you want to mark as premium
  • This module adds a new node option, Premium content, to go along with the existing core publishing options (Published, Promoted to front page, Sticky at top of lists). Go to Publishing Options and check the box next to Premium Content. 
tutuploadstutuploadsmedia_1347392403504.png

Step #7. Check your published content

  • Here is my content the front page with my 25 character teaser and the Read more link.
  • Click Read more and I’ll be able to read the full content.
tutuploadstutuploadsmedia_1347393191420.png
  • Log out as admin before you test the read more link. You should get the message that this content is for premium users only.
tutuploadstutuploadsmedia_1347393076638.png

Author

0 0 votes
Article Rating
Subscribe
Notify of
3 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Adrian mak
Adrian mak
11 years ago

What is the difference between Premium Content and Node Option Premium?

luckydad2
luckydad2
8 years ago

Thanks for this article. I would like to provide certain roles with access to 10 nodes of a specific content type and then stop their access. Is there a way to do that with this module? Thanks, Michael

Phil
Phil
4 years ago

Searching for a solution for drupal 8. Any Ideas

3
0
Would love your thoughts, please comment.x
()
x