Drupal 7 Theming Cookbook.

By: Kumar, KarthikMaterial type: TextTextPublisher: Olton : Packt Publishing Ltd, 2012Copyright date: ©2012Edition: 1st edDescription: 1 online resource (438 pages)Content type: text Media type: computer Carrier type: online resourceISBN: 9781849516778Subject(s): Drupal (Computer file) | Open source software | Web site development | Web sites -- Authoring programsGenre/Form: Electronic books.Additional physical formats: Print version:: Drupal 7 Theming CookbookDDC classification: 006.76 LOC classification: TK5105.8885.D78 -- K86 2012ebOnline resources: Click to View
Contents:
Intro -- Drupal 7 Theming Cookbook -- Table of Contents -- Drupal 7 Theming Cookbook -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Drupal Theme Basics -- Introduction -- Installing and enabling a theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Folder structure -- Disabling a theme -- See also -- Uploading a new logo -- Getting ready -- How to do it... -- How it works... -- There's more... -- Directly linking to image files -- See also -- Uploading a new favicon -- Getting ready -- How to do it... -- How it works... -- There's more... -- Alternative methods -- See also -- Adding a slogan to the theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Similar settings -- See also -- Displaying a different theme foradministration -- Getting ready -- How to do it... -- How it works... -- See also -- Adding an existing block to the theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Theme-specific block layouts -- See also -- Adding a custom block to the theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Doing more with custom blocks -- See also -- Displaying a block only on the front page -- Getting ready -- How to do it... -- How it works... -- There's more... -- Multiple pages -- Matching against URL aliases -- Exclusive display -- See also -- Controlling block visibility based on user role -- Getting ready -- How to do it... -- How it works... -- See also.
Controlling block visibility based on node type -- Getting ready -- How to do it... -- How it works... -- See also -- 2. Beyond the Basics -- Introduction -- Understanding the anatomy of a theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Other theme engine types -- Creating a subtheme based on a core theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Chaining -- See also -- Overriding base theme elements in a subtheme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Clean upgrades -- See also -- Changing the screenshot image of a theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using the .info file -- See also -- Including a CSS file in a theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Overriding the base theme's stylesheet -- See also -- Enabling CSS optimization -- Getting ready -- How to do it... -- How it works... -- There's more... -- Internet Explorer and the number 31 -- Other optimizations -- Creating the mysite module to hold our tweaks -- Getting ready -- How to do it... -- How it works... -- There's more... -- Module builder -- See also -- Adding a CSS file from a module -- Getting ready -- How to do it... -- How it works... -- There's more... -- Adding inline CSS -- Naming conventions -- See also -- Displaying a different theme for each day of the week -- Getting ready -- How to do it... -- How it works... -- There's more... -- Displaying a random theme -- See also -- Creating a fresh look using the Color module -- Getting ready -- How to do it... -- How it works... -- There's more... -- Custom presets -- 3. Custom Themes and Zen -- Introduction -- Clearing the theme registry -- Getting ready -- How to do it... -- How it works... -- There's more...
Clearing the cache using the Development block -- See also -- Creating a theme from scratch -- Getting ready -- How to do it... -- How it works... -- See also -- Creating myzen a Zen-based theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Subtheme of Zen -- RTFM -- Rebuild theme registry on every page -- See also -- Choosing a CSS layout for myzen -- Getting ready -- How to do it... -- How it works... -- There's more... -- What is RTL? -- Custom layouts -- See also -- Overriding Zen template files with myzen -- Getting ready -- How to do it... -- How it works... -- See also -- Adding a custom region to myzen -- Getting ready -- How to do it... -- How it works... -- There's more... -- Hidden regions -- Adding a background image to the theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Custom file structures -- Unused stylesheets -- See also -- Adding a conditional stylesheet in Zen -- Getting ready -- How to do it... -- How it works... -- There's more... -- Adding conditional stylesheets from modules and themes -- See also -- Modifying myzen's theme settings -- Getting ready -- How to do it... -- How it works... -- See also -- 4. Templating Basics -- Introduction -- Changing the structure of a page using template files -- Getting ready -- How to do it... -- How it works... -- See also -- Customizing the appearance of a particular node type -- Getting ready -- How to do it... -- How it works... -- See also -- Customizing the appearance of a specific node -- Getting ready -- How to do it... -- How it works... -- There's more... -- Template variables and documentation -- See also -- Theming made easy using the Devel module -- Getting ready -- How to do it... -- How it works... -- See also -- Theme overrides using the Theme developer module -- Getting ready -- How to do it...
How it works... -- There's more... -- Drupal API documentation -- Compatibility issues -- See also -- Styling the site maintenance page -- Getting ready -- How to do it... -- How it works... -- 5. Development and Debugging Tools -- Introduction -- Finding the right function to use to theme an object -- Getting ready -- How to do it... -- How it works... -- There's more... -- Function reference and the theme registry -- See also -- Analyzing variables using the Devel module -- Getting ready -- How to do it... -- How it works... -- There's more... -- Removing debug functions after use -- Other useful Devel module functions -- See also -- Generating sample content using the Devel generate module -- Getting ready -- How to do it... -- How it works... -- Resetting the default theme manually -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using the Devel module to view and edit database variables -- Live preview with Web Developer -- Getting ready -- How to do it... -- How it works... -- There's more... -- Editing HTML and CSS using Firebug -- View all CSS rules at once -- See also -- Validating HTML and CSS using Web Developer -- Getting ready -- How to do it... -- How it works... -- There's more... -- Validating HTML and CSS automatically -- Turning off JavaScript in the browser -- Getting ready -- How to do it... -- How it works... -- There's more... -- Disabling JavaScript in Opera -- Disabling JavaScript in Internet Explorer -- See also -- Disabling CSS in the browser -- Getting ready -- How to do it... -- How it works... -- There's more... -- Disabling CSS in Internet Explorer -- See also -- Inspecting elements and debugging CSS using Firebug -- Getting ready -- How to do it... -- How it works... -- See also -- Diagnostic logging of JavaScript using Firebug -- Getting ready -- How to do it... -- How it works...
There's more... -- Other console variants -- Breakpoints, watches, and more -- See also -- 6. Advanced Templating -- Introduction -- Adding a variable to all node templates -- Getting ready -- How to do it... -- How it works... -- See also -- Deleting a variable from the page template -- Getting ready -- How to do it... -- How it works... -- See also -- Adding a custom theme setting -- Getting ready -- How to do it... -- How it works... -- There's more... -- Zen's breadcrumb settings -- Complex form options -- See also -- Hiding all regions on a page -- Getting ready -- How to do it... -- How it works... -- See also -- Displaying the last updated date instead of the submitted date -- Getting ready -- How to do it... -- How it works... -- There's more... -- format_interval() and other format functions -- See also -- Module-based variable manipulation -- Getting ready -- How to do it... -- How it works... -- See also -- Optimizing using hook_preprocess() -- Getting ready -- How to do it... -- How it works... -- See also -- Displaying the date field in calendar form -- Getting ready -- How to do it... -- How it works... -- See also -- 7. JavaScript in Themes -- Introduction -- Including JavaScript files from a theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Executing JavaScript only after the page is rendered -- Drupal's JavaScript behaviors -- See also -- Including a JavaScript file only for certain pages -- Getting ready -- How to do it... -- How it works... -- There's more... -- Checking paths with greater accuracy -- See also -- Giving the username textfield keyboard focus -- Getting ready -- How to do it... -- How it works... -- There's more... -- Keyboard focus on the first available textfield -- See also -- Exporting a variable from PHP to JavaScript -- Getting ready -- How to do it... -- How it works...
Adding default text to the search textfield.
Summary: Part of Packt's Cookbook series, this book offers solutions to common theme design problems in the form of recipes. Each recipe contains step-by-step instructions and screenshots. The book is designed so that you can read it chapter by chapter, or you can refer to each recipe in no particular order. This book is for Drupal developers and administrators who want to refresh the look and feel of their site. We assume that readers are familiar with basic PHP, CSS, and XHTML as well as the general use of Drupal.
Tags from this library: No tags from this library for this title. Log in to add tags.
    Average rating: 0.0 (0 votes)
No physical items for this record

Intro -- Drupal 7 Theming Cookbook -- Table of Contents -- Drupal 7 Theming Cookbook -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Drupal Theme Basics -- Introduction -- Installing and enabling a theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Folder structure -- Disabling a theme -- See also -- Uploading a new logo -- Getting ready -- How to do it... -- How it works... -- There's more... -- Directly linking to image files -- See also -- Uploading a new favicon -- Getting ready -- How to do it... -- How it works... -- There's more... -- Alternative methods -- See also -- Adding a slogan to the theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Similar settings -- See also -- Displaying a different theme foradministration -- Getting ready -- How to do it... -- How it works... -- See also -- Adding an existing block to the theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Theme-specific block layouts -- See also -- Adding a custom block to the theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Doing more with custom blocks -- See also -- Displaying a block only on the front page -- Getting ready -- How to do it... -- How it works... -- There's more... -- Multiple pages -- Matching against URL aliases -- Exclusive display -- See also -- Controlling block visibility based on user role -- Getting ready -- How to do it... -- How it works... -- See also.

Controlling block visibility based on node type -- Getting ready -- How to do it... -- How it works... -- See also -- 2. Beyond the Basics -- Introduction -- Understanding the anatomy of a theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Other theme engine types -- Creating a subtheme based on a core theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Chaining -- See also -- Overriding base theme elements in a subtheme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Clean upgrades -- See also -- Changing the screenshot image of a theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using the .info file -- See also -- Including a CSS file in a theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Overriding the base theme's stylesheet -- See also -- Enabling CSS optimization -- Getting ready -- How to do it... -- How it works... -- There's more... -- Internet Explorer and the number 31 -- Other optimizations -- Creating the mysite module to hold our tweaks -- Getting ready -- How to do it... -- How it works... -- There's more... -- Module builder -- See also -- Adding a CSS file from a module -- Getting ready -- How to do it... -- How it works... -- There's more... -- Adding inline CSS -- Naming conventions -- See also -- Displaying a different theme for each day of the week -- Getting ready -- How to do it... -- How it works... -- There's more... -- Displaying a random theme -- See also -- Creating a fresh look using the Color module -- Getting ready -- How to do it... -- How it works... -- There's more... -- Custom presets -- 3. Custom Themes and Zen -- Introduction -- Clearing the theme registry -- Getting ready -- How to do it... -- How it works... -- There's more...

Clearing the cache using the Development block -- See also -- Creating a theme from scratch -- Getting ready -- How to do it... -- How it works... -- See also -- Creating myzen a Zen-based theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Subtheme of Zen -- RTFM -- Rebuild theme registry on every page -- See also -- Choosing a CSS layout for myzen -- Getting ready -- How to do it... -- How it works... -- There's more... -- What is RTL? -- Custom layouts -- See also -- Overriding Zen template files with myzen -- Getting ready -- How to do it... -- How it works... -- See also -- Adding a custom region to myzen -- Getting ready -- How to do it... -- How it works... -- There's more... -- Hidden regions -- Adding a background image to the theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Custom file structures -- Unused stylesheets -- See also -- Adding a conditional stylesheet in Zen -- Getting ready -- How to do it... -- How it works... -- There's more... -- Adding conditional stylesheets from modules and themes -- See also -- Modifying myzen's theme settings -- Getting ready -- How to do it... -- How it works... -- See also -- 4. Templating Basics -- Introduction -- Changing the structure of a page using template files -- Getting ready -- How to do it... -- How it works... -- See also -- Customizing the appearance of a particular node type -- Getting ready -- How to do it... -- How it works... -- See also -- Customizing the appearance of a specific node -- Getting ready -- How to do it... -- How it works... -- There's more... -- Template variables and documentation -- See also -- Theming made easy using the Devel module -- Getting ready -- How to do it... -- How it works... -- See also -- Theme overrides using the Theme developer module -- Getting ready -- How to do it...

How it works... -- There's more... -- Drupal API documentation -- Compatibility issues -- See also -- Styling the site maintenance page -- Getting ready -- How to do it... -- How it works... -- 5. Development and Debugging Tools -- Introduction -- Finding the right function to use to theme an object -- Getting ready -- How to do it... -- How it works... -- There's more... -- Function reference and the theme registry -- See also -- Analyzing variables using the Devel module -- Getting ready -- How to do it... -- How it works... -- There's more... -- Removing debug functions after use -- Other useful Devel module functions -- See also -- Generating sample content using the Devel generate module -- Getting ready -- How to do it... -- How it works... -- Resetting the default theme manually -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using the Devel module to view and edit database variables -- Live preview with Web Developer -- Getting ready -- How to do it... -- How it works... -- There's more... -- Editing HTML and CSS using Firebug -- View all CSS rules at once -- See also -- Validating HTML and CSS using Web Developer -- Getting ready -- How to do it... -- How it works... -- There's more... -- Validating HTML and CSS automatically -- Turning off JavaScript in the browser -- Getting ready -- How to do it... -- How it works... -- There's more... -- Disabling JavaScript in Opera -- Disabling JavaScript in Internet Explorer -- See also -- Disabling CSS in the browser -- Getting ready -- How to do it... -- How it works... -- There's more... -- Disabling CSS in Internet Explorer -- See also -- Inspecting elements and debugging CSS using Firebug -- Getting ready -- How to do it... -- How it works... -- See also -- Diagnostic logging of JavaScript using Firebug -- Getting ready -- How to do it... -- How it works...

There's more... -- Other console variants -- Breakpoints, watches, and more -- See also -- 6. Advanced Templating -- Introduction -- Adding a variable to all node templates -- Getting ready -- How to do it... -- How it works... -- See also -- Deleting a variable from the page template -- Getting ready -- How to do it... -- How it works... -- See also -- Adding a custom theme setting -- Getting ready -- How to do it... -- How it works... -- There's more... -- Zen's breadcrumb settings -- Complex form options -- See also -- Hiding all regions on a page -- Getting ready -- How to do it... -- How it works... -- See also -- Displaying the last updated date instead of the submitted date -- Getting ready -- How to do it... -- How it works... -- There's more... -- format_interval() and other format functions -- See also -- Module-based variable manipulation -- Getting ready -- How to do it... -- How it works... -- See also -- Optimizing using hook_preprocess() -- Getting ready -- How to do it... -- How it works... -- See also -- Displaying the date field in calendar form -- Getting ready -- How to do it... -- How it works... -- See also -- 7. JavaScript in Themes -- Introduction -- Including JavaScript files from a theme -- Getting ready -- How to do it... -- How it works... -- There's more... -- Executing JavaScript only after the page is rendered -- Drupal's JavaScript behaviors -- See also -- Including a JavaScript file only for certain pages -- Getting ready -- How to do it... -- How it works... -- There's more... -- Checking paths with greater accuracy -- See also -- Giving the username textfield keyboard focus -- Getting ready -- How to do it... -- How it works... -- There's more... -- Keyboard focus on the first available textfield -- See also -- Exporting a variable from PHP to JavaScript -- Getting ready -- How to do it... -- How it works...

Adding default text to the search textfield.

Part of Packt's Cookbook series, this book offers solutions to common theme design problems in the form of recipes. Each recipe contains step-by-step instructions and screenshots. The book is designed so that you can read it chapter by chapter, or you can refer to each recipe in no particular order. This book is for Drupal developers and administrators who want to refresh the look and feel of their site. We assume that readers are familiar with basic PHP, CSS, and XHTML as well as the general use of Drupal.

Description based on publisher supplied metadata and other sources.

Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2018. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.

There are no comments on this title.

to post a comment.

Powered by Koha