1.

Record Nr.

UNINA9910785316303321

Autore

Kumar Karthik

Titolo

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

Pubbl/distr/stampa

Birmingham, U.K., : Packt, 2010

ISBN

1-282-90509-0

9786612905094

1-84719-869-4

Descrizione fisica

1 online resource (384 p.)

Disciplina

006.78

Soggetti

Web site development

Web sites - Design

Cascading style sheets

Open source software

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Includes index.

Nota di contenuto

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

Adding default text to the search textfield

Sommario/riassunto

Over 100 clear step-by-step recipes to create powerful, great-looking Drupal themes