Drupal Logout Destination
Each time I logged out, I would be returned to a page that said, “You are not authorized to access this page. There seemed to be a conflict with the access control for anonymous users (which upon logout, I became an anonymous user) and accessing the logout screen which seemed to be a “user only” page.
I have been working on a logout destination page. As with other redirects based on requested pages, I had created a refresh page that directed users back to the home page in the page.tpl.php file:
if ($_REQUEST['q'] == 'logout') {
print ' ';
}
The problem with the redirect is that I would still see the same message. And trying to modify the access control for node content worked, but introduced the same message on other pages. I also tried calling logout?destination=somepage without success.
After a long darned time, I realized that the problem could be found in administer/site configuration/site information where the default front page was stored. When I modified that to not be one of the node pages, and instead directed it back to index.php, we were set!
Drupal Challenges
We have now created two sites using Drupal’s content management system. The jury is still out as to whether the application is worthwhile. Scott is a great programmer, and in many cases, I know he could build suitable applications in less time than it takes to figure out Drupal integration with hooks and themes and so on.
But we’re committed to learning the basics and decided to track some of those details in this section for later review, and perhaps to serve as a guide to those also striving to learn the ins and outs of Drupal.