Amazon cover image
Image from Amazon.com

Drupal 6 theming cookbook : over 100 clear, step-by-step recipes to create powerful, great-looking Drupal themes / Karthik Kumar.

By: Material type: TextTextPublication details: Birmingham, U.K. : Packt, ©2010.Description: 1 online resource (iv, 371 pages) : illustrationsContent type:
  • text
Media type:
  • computer
Carrier type:
  • online resource
ISBN:
  • 9781847198693
  • 1847198694
  • 1847198686
  • 9781847198686
  • 1282905090
  • 9781282905092
  • 9786612905094
  • 6612905093
Other title:
  • Drupal six theming cookbook
Subject(s): Genre/Form: Additional physical formats: No titleDDC classification:
  • 006.7/6 23
LOC classification:
  • TK5105.8885.D78 K863 2010eb
Online resources:
Contents:
Cover; Copyright; Credits; About the Author; About the Reviewers; Table of Contents; Preface; Chapter 1: Drupal Theme Basics; Introduction; Installing and enabling a theme; Uploading a new logo; Uploading a new favicon; Adding a slogan to the theme; Allowing users to choose from; multiple themes; Displaying a different theme for; administration; Adding an existing block to the theme; Adding a custom block to the theme; Displaying a block only on the front page; Controlling block visibility based on; user role; Controlling block visibility based on; node type; Chapter 2: Beyond the Basics
IntroductionUnderstanding the anatomy of a theme; Creating a sub-theme based on a; core theme; Overriding base theme elements in a; sub-theme; Changing the screenshot image of a theme; Including a CSS file in a theme; Enabling CSS optimization; Creating the mysite module to hold; our tweaks; Adding a CSS file from a module; Displaying a different theme for each; day of the week; Creating a fresh look using the color module; Chapter 3: Custom Themes and Zen; Introduction; Clearing the theme registry; Creating a theme from scratch; Creating myzen, a Zen-based theme
Choosing a CSS layout for myzenOverriding Zen template files with myzen; Adding a custom region to myzen; Adding a background image to the theme; Adding a conditional stylesheet in Zen; Modifying myzen's theme settings; Chapter 4: Templating Basics; Introduction; Changing the layout of a page using; page.tpl.php; Customizing the appearance of a; particular node type; Customizing the appearance of a; specific node; Theming made easy using the Devel module; Theme overrides using the Theme; developer module; Listing all available variables in a; template file; Displaying the profile name instead
Of a usernameStyling the site maintenance page; Chapter 5: Development and Debugging Tools; Introduction; Finding the right function to use to theme; an object; Analyzing variables using the Devel module; Generating sample content using the; Devel generate module; Resetting the default theme manually; Live preview with Web Developer; Validating HTML and CSS using Web; Developer; Turning off JavaScript in the browser; Disabling CSS in the browser; Inspecting elements and debugging; CSS using Firebug; Diagnostic logging of JavaScript; using Firebug; Chapter 6: Advanced Templating; Introduction
Adding a variable to all node templatesDeleting a variable from the page template; Adding a custom theme setting; Hiding all regions on a page; Displaying the last updated date; instead of the submitted date; Module-based variable manipulation; Optimizing using hook_preprocess(); Displaying the date field in calendar form; Chapter 7: JavaScript in Themes; Introduction; Including JavaScript files from a theme; Including a JavaScript file only for; certain pages; Giving the username textfield keyboard; focus; Exporting a variable from PHP to JavaScript
Summary: Annotation Written in cookbook style, this book offers solutions to all common theme design problems through recipes. Each recipe contains step-by-step instructions followed by the analysis of what was done in each task and other useful information. The book is designed so that you can read it chapter by chapter, or you can look at the list of recipes and refer to them in no particular order. This book is written for Drupal developers who want to refresh the look and feel of their sites. If you are a Drupal site administrator who is looking to go beyond the basics and customize the presentational aspects of your Drupal site, then this book is for you. It assumes that readers are familiar with rudimentary PHP and acquainted with Drupal installation and general usage. Readers are also expected to have knowledge of CSS and XHTML.
Holdings
Item type Current library Collection Call number Status Date due Barcode Item holds
eBook eBook e-Library EBSCO Computers Available
Total holds: 0

Annotation Written in cookbook style, this book offers solutions to all common theme design problems through recipes. Each recipe contains step-by-step instructions followed by the analysis of what was done in each task and other useful information. The book is designed so that you can read it chapter by chapter, or you can look at the list of recipes and refer to them in no particular order. This book is written for Drupal developers who want to refresh the look and feel of their sites. If you are a Drupal site administrator who is looking to go beyond the basics and customize the presentational aspects of your Drupal site, then this book is for you. It assumes that readers are familiar with rudimentary PHP and acquainted with Drupal installation and general usage. Readers are also expected to have knowledge of CSS and XHTML.

Cover; Copyright; Credits; About the Author; About the Reviewers; Table of Contents; Preface; Chapter 1: Drupal Theme Basics; Introduction; Installing and enabling a theme; Uploading a new logo; Uploading a new favicon; Adding a slogan to the theme; Allowing users to choose from; multiple themes; Displaying a different theme for; administration; Adding an existing block to the theme; Adding a custom block to the theme; Displaying a block only on the front page; Controlling block visibility based on; user role; Controlling block visibility based on; node type; Chapter 2: Beyond the Basics

IntroductionUnderstanding the anatomy of a theme; Creating a sub-theme based on a; core theme; Overriding base theme elements in a; sub-theme; Changing the screenshot image of a theme; Including a CSS file in a theme; Enabling CSS optimization; Creating the mysite module to hold; our tweaks; Adding a CSS file from a module; Displaying a different theme for each; day of the week; Creating a fresh look using the color module; Chapter 3: Custom Themes and Zen; Introduction; Clearing the theme registry; Creating a theme from scratch; Creating myzen, a Zen-based theme

Choosing a CSS layout for myzenOverriding Zen template files with myzen; Adding a custom region to myzen; Adding a background image to the theme; Adding a conditional stylesheet in Zen; Modifying myzen's theme settings; Chapter 4: Templating Basics; Introduction; Changing the layout of a page using; page.tpl.php; Customizing the appearance of a; particular node type; Customizing the appearance of a; specific node; Theming made easy using the Devel module; Theme overrides using the Theme; developer module; Listing all available variables in a; template file; Displaying the profile name instead

Of a usernameStyling the site maintenance page; Chapter 5: Development and Debugging Tools; Introduction; Finding the right function to use to theme; an object; Analyzing variables using the Devel module; Generating sample content using the; Devel generate module; Resetting the default theme manually; Live preview with Web Developer; Validating HTML and CSS using Web; Developer; Turning off JavaScript in the browser; Disabling CSS in the browser; Inspecting elements and debugging; CSS using Firebug; Diagnostic logging of JavaScript; using Firebug; Chapter 6: Advanced Templating; Introduction

Adding a variable to all node templatesDeleting a variable from the page template; Adding a custom theme setting; Hiding all regions on a page; Displaying the last updated date; instead of the submitted date; Module-based variable manipulation; Optimizing using hook_preprocess(); Displaying the date field in calendar form; Chapter 7: JavaScript in Themes; Introduction; Including JavaScript files from a theme; Including a JavaScript file only for; certain pages; Giving the username textfield keyboard; focus; Exporting a variable from PHP to JavaScript

English.

Added to collection customer.56279.3

Powered by Koha