Learning library

Welcome to NodeOne’s Drupal learning library! Use the settings below if you want to search the library for episodes and exercises, or just dive right in. You can get notifications on new content by following the learning library RSS.

Promote to front page for selected tag

In this exercise you should help editors a bit more. Whenever a node is created on the site that has the tag "news", it should be promoted to the front page.

"Add another" link (yet again)

The warming-up exercise for Rules will be to help editors who are posting a lot of articles on the site. Whenever an editor creates saves a new article, she should get a link leading to the page to create another article.

Learning the Rules module

The Rules module is one of the most important framework modules in Drupal (along with Views and Page manager). In short, Rules is used to automate workflows on your site (but can do a lot of other things as well).

The #states property

The #states property is normally used for showing or hiding form elements, depending on the values of other elements. This screencast shows an implementation of this that may be of use if you're trying to understand this setting yourself.

Theming forms

This screencasts shows some aspects of theming forms, using the hook_form_FORM_ID_alter functions. Only a few properties of the form elements are discussed in the screencast, including:

Theming Views

This screencast shows an example of the special case of theming Views. This does, in general, work as theming other parts of Drupal – you copy template files to you theme and modify them, you write preprocess functions, and you write theme functions.

Switching between templates and theme functions

This screencast shows that theme functions and template files are actually interchangable from a theme layer point of view. That means that it doesn't matter if you have a template file called field--body--page.tpl.php, or a theme function called MYTHEME_field__body__page.

Theme functions

This screencast shows that while some elements on a Drupal page are themed by template files, quite a few are themed by *theme functions*. In this screencast you will learn:

Sidor