OK guys, here the Drupal 7 port.

I solved the teaser problem a bit differently, basically I rerender the node in teaser mode. That should solve the problems with fields nicely I would think.

Comments

berenddeboer’s picture

StatusFileSize
new60 KB

Update, fixed some notice warnings.

berenddeboer’s picture

Changes are now in git.

BenK’s picture

Keeping track of this... looking forward to testing.

johnv’s picture

Title: Drupal 7 port » Drupal 7 port for Premium content
Version: 6.x-1.0-beta2 » 7.x-1.x-dev
Status: Needs review » Fixed
Coenk’s picture

I have added a title. How can I change the user levels so that some can read the content labeled with title?

johnv’s picture

Status: Fixed » Active

Mikl, berend,
can you publish the D7-version on the project page? Thanx.

@Coenk, Is your question related to this issue? You can create a separate issue for your problem, since a D7-version is available to assign to your issue.

mikl’s picture

I haven’t had a whole lot of feedback for the D7 release, and I don't use it myself, so I am a bit vary of putting out a release. How many have tested it?

In any case, the dev-snapshot should be visible on the project page now :)

joemaine’s picture

I'm trying to get either this or Node Option Premium to work in Drupal 7. Content Access isn't an option as CA hides all fields in views. What I expect the Premium Content module to do is:

  • Work with Views - allow selected fields to appear in a view (this works)
  • Link to node, from view, for authorized users (this works)
  • Link to teaser (Premium Content's "Access denied message"), from view, for non-authorized user (this does not work - a "Read more" link to the current node appears instead of the expected "Access denied message")
  • Not allow a non-authorized user to download a private file (Drupal 7 core file field) attached to a "Premium Content" node. Node Option Premium has a patch for Drupal 6 (not for 7). (this is my most important need from this type of module)

I have some time for testing if a solution is available soon.

berenddeboer’s picture

I'm guessing files will still be downloadable if you have a link. But not sure.

Why don't you try it out?

And patches welcome obviously.

mikl’s picture

Status: Active » Fixed

Beta release is out.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.