Chapter 7. Theming and Layout
There's no doubt-about it, this is the "deepest" section of the book. We'll see at least four types of code in this chapter, and they all interact. We have got HTML (such as <ol>
for an ordered list). We have got PHP (such as print '<ol>';
). We have got Drupal-specific code (theme('views_more', $view->real_url);
) and we have got Cascading Style Sheets or CSS (border: 1px solid #3f5f99; /*Blue */
). Indeed, there is a lot to know about if you wish to fine-tune the appearance of your views.
Additionally, some of our recipes make use of jQuery (Views Carousel, and Lightbox2 both rely in the jQuery update module), but we won't be covering jQuery in any depth.
Tip
In Essence: The Themer's Toolbox
HTML
PHP
Drupal
CSS
JavaScript and jQuery
If code makes you pale, check out the two code-free recipes in this chapter: Panels, Recipe 70 (also not for the "faint of heart" but there's no code) and Quicktabs Dashboard, Recipe 85.
But even if you've never looked at code...