Drupal 7 Protected Content Type

Events happening in the community are now at Drupal community events on www.drupal.org.
jcap923's picture

Hi guys. May I know what is the recommended way to implement a "Password Protected Content Type" in Drupal 7?
Thanks in advance.

Comments

by password protected you

primerg's picture

by password protected you mean to only allow view of that content for certain user roles? and ask them to login first before viewing that content?

Create a script based on role type

ryangambito's picture

you can create a custom tpl for your custom content type.Inside that tpl you can create a php script that does not allow "anonymous" or unallowed "role type" to access it without the password

Philippines

Group organizers

Group categories

Post category

Group notifications

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