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
- Casada con un canadiense
hace 6 horas 9 mins - REspuesta para Stereo Mix
hace 2 días 8 horas - stero mix
hace 3 días 13 horas - stero mix
hace 3 días 13 horas - Consulta sobre ver en pantalla completa
hace 3 días 17 horas - informacion
hace 3 días 17 horas - MUCHISIMAS GRACIAS
hace 3 días 20 horas - problemas de sonido hp pavilion dv4-1213la
hace 5 días 14 horas - gracias
hace 1 semana 14 horas - No me sellan pasaporte
hace 1 semana 19 horas
Contenido popular
Hoy:
- WINDOWS VISTA: SOLUCIÓN DEL PROBLEMA DE GRABACIÓN DE SONIDOS
- El SAIME reanudó el proceso de regularización y naturalización de extranjeros indocumentados
- Se me volteó la imagen de la pantalla de mi ordenador
- PASOS PARA OBTENER LA PRORROGA DE LA VISA DE ESTUDIANTE EN VENEZUELA
- Escribe aquí tu pregunta sobre migración legal a Venezuela
- EL CONCEPTO DE METARRELATO EN EL POSTMODERNISMO
- CÓMO ELIMINAR UN ARRANQUE DUAL: DEJAR VISTA Y QUITAR XP
- PROBLEMA CON WINDOWS VISTA: DESAPARECE LA UNIDAD DE CD O DVD
- COMO INSTALAR DIMDIM OPEN SOURCE EN UN SERVIDOR LINUX
- WINDOWS 7: SOLUCION AL PROBLEMA DE GRABACIÓN DE SONIDOS
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 SAIME reanudó el proceso de regularización y naturalización de extranjeros indocumentados
- EL CONCEPTO DE METARRELATO EN EL POSTMODERNISMO
- Escribe aquí tu pregunta sobre migración legal a Venezuela
- 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
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