Learning library

Learning library

Välkommen till NodeOne's Drupal learning library! Använd inställningarna nedan om du vill söka i biblioteket efter epsioder och och övningar, eller dyk bara rätt in. Du kan få notifikationer om nytt innehåll genom att följa RSS-flödet.

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:

More preprocessing

This screencast shows some more useful things with preprocess functions:

Providing new template variables (preprocessing 1)

This screencast introduces the concept of preprocess functions – functions usually used for adding new variables to your template files. By using preprocess functions you can move complex logic out of the template files, and feed the templates with pre-made variables instead.

Page layout and regions

This screencast shows how to add new regions to your sub theme (or change the existing ones). This is done in three steps:

A better CSS override

This screencast shows an alternative – and better – way of overriding small parts of CSS. Instead of overriding the entire CSS file, you can simply add your own file with selective overrides.

Sub themes and overriding CSS

This screencast shows how easy it is to create a sub theme, so you don't have to hack core. This is done by creating a new folder in your sites/default/themes (or sites/all/themes) directory, and then adding a MYTHEME.info file. This should be populated with:

About themes

This screencast introduces themes:

Introduction to theming

This chapter contains the episodes about Drupal theming. Nothing to see on this page -- please proceed to the actual episodes. :-)

Pages