I'm building a membership site and I'm trying to find the best way to tease content that's only available to subscribers but show it in the same view as content available to all.

I'm currently using the content access module and while I'm able to generate the view that includes both open and restricted content I need a way to attach a lock icon to the rows who have restricted access. My thought was to have the view output the content access permission as a field but content access doesn't appear to have anything currently exposed to views.

Has anyone done something like this before? I'm open to using a different access control module as long as I can set permissions on a per-node basis.

  • Does the view attach a container class for the restricted vs open content that you could use to add an icon with css?
    – thumbson
    Commented Feb 10, 2015 at 19:47
  • Is the content type of restricted access different from the allowed to all?
    – No Sssweat
    Commented Feb 11, 2015 at 2:54
  • @thumbson: That's what I'm trying to do but I can't seem to expose the access status to the view itself
    – Pooch
    Commented Feb 11, 2015 at 21:23
  • @no sssweat: no they're the same content type and they have various permissions set via the content access module
    – Pooch
    Commented Feb 11, 2015 at 21:24

1 Answer 1


I haven't used this in a while (2 years), but it did what you described back then!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.