How to restrict access to nodes, node types and menu items of your Drupal based site
Introduction to the use of Content Acces and LoginToboggan modules
INTRODUCTION. When you base the design of your site on the Drupal CMS, you can have many people register by themselves as users of your site.
My site, orlandocarcamo.com, is based on Drupal CMS. In that site I post information related to my job as a higher education professor, opinion articles, local news and hobbies. Around one hundred persons had registered themselves as users until I had realized that my site did not offer anything different to registered users. Both registered and unregistered ones had access to the same information.
THE PROBLEM. I wanted to restrict the access to certain nodes and node types to registered users with the aim of leading unregistered visitors to create new accounts. When an unregistered user clicked on certain menu items, a warning should appear telling the visitor that he had no access to such a node because he was not registered as user of my site. Below that warning, a form should appear inviting the user to create an account on this site.
This task was not an easy one. I invested many hours trying many modules but they did not behave as I wanted. I tried, for example, Signup, Signup restrict by role, Simple Access and others. What all these modules do is to hide certain nodes or pages from users by roles. But what I really wanted was that the unregistered visitor saw certain link but it did not allow them access to the node but to a registration page.
THE SOLUTION. After a failed process of trying useless modules to my purpose, I found a very brief article at Web Developer’s Blog which provided the solution to my problem. There I found two modules that made the job as I wanted. The first module is Content Access; the second one is LoginToboggan.
Content Access is a module that allows the site administrator to manage permissions for content types by role and author. However, this module, when working alone, poses an usability problem. Whenever an unauthorized person clicks on a restricted link, s/he is received with a rather unfriendly access denied error message with no option to become a user of your site. This problem can be avoided thanks to the LoginToboggan module.

LoginToboggan allows you to display a login form on the unfriendly access denied page. By this login form unregistered users can open an account on our site and get registered. This is what I was looking for.

CONCLUSION. Having your visitors register on your site might be good enough in order to know who is visiting your site and reading your articles. You can somewhat force your visitors to register if you restrict their access to certain materials or pages. This restriction can be nicely achieved by means of the modules Content Acces and LoginToboggan working together as a team.
REFERENCES:
THE DEVELOPER’S BLOG (2008). Restrict access to Drupal nodes, node types and menu items. Online: http://webdeveloper.beforeseven.com/drupal/restrict-access-drupal-nodes-node-types-and-menu-items (Search: May 10th, 2009).
DRUPAL.ORG (2006). Login Toboggan. Online: http://drupal.org/project/logintoboggan
(Search: May 10th, 2009).
_________ (2007). Content Access. Online:
http://drupal.org/project/content_access
(Search: May 10th, 2009).
Comentarios recientes
- graxias la verdad muchas
hace 22 horas 53 mins - Respuesta para Karlzapata
hace 2 días 18 horas - GRABAR ENTORNO DE LA PC EN WINDOWS 7
hace 2 días 19 horas - muchas gracias me ha
hace 3 días 21 horas - CONSULTA VISA DE TRANSEUNTE
hace 4 días 6 horas - Respuesta
hace 1 semana 17 horas - Respuesta para Ethereo
hace 1 semana 17 horas - Respuesta para Lilibeth!
hace 1 semana 18 horas - mas problemas que me preocupan
hace 1 semana 20 horas - Aclaración importante
hace 1 semana 2 días
Contenido popular
Hoy:
- WINDOWS VISTA: SOLUCIÓN DEL PROBLEMA DE GRABACIÓN DE SONIDOS
- PASOS PARA OBTENER LA PRORROGA DE LA VISA DE ESTUDIANTE EN VENEZUELA
- Se me volteó la imagen de la pantalla de mi ordenador
- El SAIME reanudó el proceso de regularización y naturalización de extranjeros indocumentados
- CÓMO ELIMINAR UN ARRANQUE DUAL: DEJAR VISTA Y QUITAR XP
- PROBLEMA CON WINDOWS VISTA: DESAPARECE LA UNIDAD DE CD O DVD
- MI PRIMERA EXPERIENCIA CON LINUX Y DIMDIM
- EL CONCEPTO DE METARRELATO EN EL POSTMODERNISMO
- Sobre cómo produje mi primer objeto SCORM
- LA RAYA: RESERVA NATURAL DE FAUNA Y FLORA, ZONA IDEAL PARA EL ECOTURISMO
Siempre:
- WINDOWS VISTA: SOLUCIÓN DEL PROBLEMA DE GRABACIÓN DE SONIDOS
- PASOS PARA OBTENER LA PRORROGA DE LA VISA DE ESTUDIANTE EN VENEZUELA
- CÓMO ELIMINAR UN ARRANQUE DUAL: DEJAR VISTA Y QUITAR XP
- PROBLEMA CON WINDOWS VISTA: DESAPARECE LA UNIDAD DE CD O DVD
- Se me volteó la imagen de la pantalla de mi ordenador
- EL CONCEPTO DE METARRELATO EN EL POSTMODERNISMO
- COMO CONECTAR EL ESCANER HP SCANJET 5100C A TARJETAS MADRE SIN PUERTO PARALELO
- LA RAYA: RESERVA NATURAL DE FAUNA Y FLORA, ZONA IDEAL PARA EL ECOTURISMO
- VIDEO: MEDANOS DE CORO, ESTADO FALCÓN, VENEZUELA
- REFERENCIAS BIBLIOGRÁFICAS: ESTILO APA
Últimas impresiones:
- CÓMO ELIMINAR UN ARRANQUE DUAL: DEJAR VISTA Y QUITAR XP
- BASES DE DATOS
- VIDEO: LA VELA DE CORO, ESTADO FALCÓN, VENEZUELA
- El SAIME reanudó el proceso de regularización y naturalización de extranjeros indocumentados
- Cómo restringir el acceso a páginas, tipos de páginas y menús de su sitio web basado en Drupal
Artículos más promocionados por los lectores
- PASOS PARA OBTENER LA PRORROGA DE LA VISA DE ESTUDIANTE EN VENEZUELA
- PROBLEMA CON WINDOWS VISTA: DESAPARECE LA UNIDAD DE CD O DVD
- WINDOWS VISTA: SOLUCIÓN DEL PROBLEMA DE GRABACIÓN DE SONIDOS
- VIDEO: MEDANOS DE CORO, ESTADO FALCÓN, VENEZUELA
- CONTRASTES MIGRATORIOS QUE OFENDEN LA DIGNIDAD DE LOS COLOMBIANOS









Enviar un comentario nuevo