tips for a video gallery with controlled access?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
JHarahush's picture

Hi everyone,

I'm somewhat stuck with a site that I have been helping with. My background is in GIS and mapping, but I've been asked to set up a video gallery with Drupal. The videos were created by the customer and hosted on YouTube. I've found a tutorial on how to do this with setting up a specific content type (in my case, 'video') and using the Embedded Media Field module and Views, but the request involves restricted access. Basically, I would like to have a gallery page with thumbnails, but then when a non-authenticated user clicks on a thumbnail, they will be prompted to create a user account.

Sparing the discussion about abandonment and users who don't want to or don't like to create accounts (I'm not in agreement with the idea to restrict access to these videos that are hosted on YouTube and could be viewed directly from YouTube anyway, but I'm not the customer in this case), is there a good way to accomplish this? I'm trying the nodeaccess module, and it works as-advertised, except now that the 'video' nodes are not visible to anonymous users, they can't see any thumbnails in the video gallery.

Should I be using some other combination of modules, or is there something I can do to accomplish this?

Thank you in advance for any ideas. I appreciate it.

Jonathan

Comments

I haven't personally used it,

peterjmag's picture

I haven't personally used it, but try the Views Ignore Node Permissions module. It's a relatively small module based on this blog post, and it sounds like it allows you to add a Views filter that accomplishes exactly what you need. If you're not already, you can then use something like LoginToboggan to display the login form on access denied pages.

Panels?

jcfiala's picture

I've used panels in the past when I need to display one sort of view to users with one role, and another display for users with another.

In this case the display for users with the 'anonymous' role is text telling them they should go to user/register.

-john

Thank you

JHarahush's picture

I just wanted to say thank you so much for both suggestions. I used the combination of nodeaccess, logintoboggan, and the views ignore node permissions module, although I also like the idea of using Panels, so I might try that as well. Thanks again -- this group has saved me so much time!

Jonathan

Drupal Colorado

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week