This is a post from my original site, which was hosted by the former blog service of the University of Osnabrück. I have moved it to the new site for archiving. Pages linked in this article may no longer work today, and the blog comments under the article no longer exist. Opinions expressed in this article reflect the point of view of the time of publication and do not necessarily reflect my opinion today.
If you're running a Drupal-based webpage which is completely restricted to authenticated users, Anonymous would get an "403 Access Denied" on every page he tries. But if you want your visitors to see a friendly login page (instead of just this error message and a small "login block") you might want to put the following code into your sites/default/setting.php:
You should also check $path if you want to use this on some pages only, e.g. on your frontpage.
UPDATE: This code is erroneous! You should return $result instead of $path, or some other modules like pathauto or path_redirect won't work as expected!
This is a post from my original site, which was hosted by the former blog service of the University of Osnabrück. I have moved it to the new site for archiving. Pages linked in this article may no longer work today, and the blog comments under the article no longer exist. Opinions expressed in this article reflect the point of view of the time of publication and do not necessarily reflect my opinion today.
Eine Liste von nützlichen Modulen für Drupal 6 - in erster Linie als Reminder für mich selbst:
Administration MenuLagert das komplette Navigations-Menü in eine JavaScript-basierte Leiste am oberen Rand aus. Extrem nützlich, wenn das eigene Theme eigentlich keinen Platz für eine weitere Navigation vorsieht.Content Construction Kit (CCK)Zusammen mit den vielen Ergänzungen (CCK hat auf drupal.orgeine eigene Kategorie) eines der mächtigsten Plugins für Drupal.ViewsEbenfalls ein sehr wichtiges Modul, welches wohl hauptverantwortlich für die Flexibilität von Drupal ist. Besitzt ebenfalls eine eigene Kategorie für die auf Views aufbauenden Erweiterungen.DHTML MenuErsetzt die Navigation durch eine JavaScript-Basierte Variante. Sehr nützlich auf Seiten mit vielen Unterkategorien, oder wenn eine Oberkategorie eigentlich garkein Link sein sollte.TinyTinyMCEErsetzt das Textfeld von Drupal durch den WYSIWYG-Editor TinyMCE.FCKeditorIch kann mich einfach nicht entscheiden, ob ich Tiny oder FCK besser finde...IMCEUpload, Auswahl und Verwaltung (nicht nur) von Bildern auf dem Server. Überzeugt durch seine Schlichtheit. Eine Alternative ist eigentlich nur das kommerzielle Modul MCImageManager vom gleichen Hersteller wie TinyMCE.IMCE MkDirWas IMCE fehlt ist die Möglichkeit, neue Verzeichnisse auf dem Server anzulegen. Dieses Modul liefert das Feature nach.Node BlocksNode Blocks stellt die bequemste Möglichkeit dar, mal eben einen statischen Inhalt in die Sidebars, den Header oder den Footer einzubinden.PathautoAutomatische Generierung sprechender Pfadnamen für die Inhalte.to be continied...