Drupal's Building Blocks: Quickly Building Web Sites with CCK, Views and Panels [NOOK Book]

Overview

“Even if you’re already a seasoned Drupal user of CCK, Views, or Panels, I’ve no doubt that this book will provide you with several new techniques and methods for getting the most out of these extremely essential modules. It certainly has for me.”

Dries Buytaert, founder and project lead of Drupal, and CTO of Acquia

With Drupal, Web professionals can create full-featured Web sites with just a few clicks. Drupal’s core is compact and well documented, but much of Drupal’s ...

See more details below
Drupal's Building Blocks: Quickly Building Web Sites with CCK, Views and Panels

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac

Want a NOOK? Explore Now

NOOK Book (eBook)
$19.99
BN.com price
(Save 44%)$35.99 List Price

Overview

“Even if you’re already a seasoned Drupal user of CCK, Views, or Panels, I’ve no doubt that this book will provide you with several new techniques and methods for getting the most out of these extremely essential modules. It certainly has for me.”

Dries Buytaert, founder and project lead of Drupal, and CTO of Acquia

With Drupal, Web professionals can create full-featured Web sites with just a few clicks. Drupal’s core is compact and well documented, but much of Drupal’s immense power lies elsewhere—in external modules. Drupal’s Building Blocks is an authoritative tutorial, reference, and cookbook for Drupal’s most valuable modules.

The authors are Drupal insiders who’ve spent years creating and supporting these modules—Earl Miles, developer of the Views and Panels modules, and Lynette Miles, Drupal documentation team member. They’ve brought together indispensable information you won’t find anywhere else, as well as extensive sample “recipe” code designed for easy adaptation and reuse. Learn how to

  • Use Content Construction Kit (CCK) to customize your data input forms around your needs
  • Improve site flexibility with Drupal’s node system
  • Add optional field types, including PHP-based fields
  • Customize themes to display data more attractively and legibly
  • Build powerful Views query displays
  • Integrate with SQL databases
  • Customize Views with relationships, arguments, and filters
  • Optimize query performance
  • Add custom styles with the Panels module
  • Maintain full control over sites as you deploy into production

This book will help you create more powerful, flexible, usable, and manageable Web sites—whether you’re a Web developer, designer, administrator, architect, or consultant.

The accompanying Web site contains all examples, code, and themes presented in this book.

Read More Show Less

Product Details

  • ISBN-13: 9780132655941
  • Publisher: Pearson Education
  • Publication date: 1/5/2011
  • Series: Developer's Library
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 384
  • Sales rank: 876,556
  • File size: 6 MB

Meet the Author

Earl Miles is a permanent member and founder of the Drupal Association. In 2005, Earl found Drupal and thought it was exactly what he needed to build a website in his spare time. When he found that Drupal lacked some key features, Earl ignored work for three weeks and created the Views module which has been instrumental in Drupal’s continued growth. Earl has been active in the community providing support, as well as posting tips and tricks when the mood strikes him. A lifelong programmer, he is currently employed by iO1, a company that actively participates in the development and consumption of open source software.

Lynette Miles has worked for fifteen years in professional software technical support, mainly for Alcatel-Lucent. She became involved with Drupal after attending DrupalCon Brussels and DrupalCon Barcelona. Since then, she has spent most of her contributing time working with the Drupal Documentation team and triaging the Views and Panels queues.

Read More Show Less

Table of Contents

Foreword xvii

Preface xix

Acknowledgments xxiii

About the Authors xxiv

Part I: Content Construction Kit

Chapter 1: Introducing CCK and Nodes 3

The Node System 3

Quest for the Grail: How CCK Was Born 8

Getting Started with CCK 10

Creating a New Content Type 11

Summary 15

Chapter 2: Field Concepts 17

What You Should Know Before Creating Fields and Content Types 17

The Content Type Pages 17

Creating New Fields for Content 24

Putting the Parts Together 30

Summary 38

Chapter 3: Deeper into Fields 39

Choosing Field Types 39

Constraining Data with Widgets 43

Date Module 48

Computed Fields 51

Link and Email Fields 54

Highly Visual Media 55

Summary 57

Chapter 4: Themes and CCK 59

Theme Basics 59

CCK Specific Theming 62

Helper Modules 69

Summary 73

Chapter 5: CCK API 75

Using the CCK API 75

The Field Model 76

Widget Type Modules 85

Formatter Modules 87

Creating Field Instances Using Content Copy 91

Creating Field Instances with the CRUD API 91

Creating Data for CCK Fields 95

Miscellaneous Helper Functions 97

Summary 98

Part II: Views

Chapter 6: Relational Databases 101

Drupal, SQL, and the Emergence of Views 101

The Basics of Relational Databases 102

Filtering and Sorting 105

From SQL to Views to Human Language 107

Summary 108

Chapter 7: Creating Views 109

Views UI 109

Showing Your Views to the World: Creating Displays 131

Summary 136

Chapter 8: Arguments, Exposed Filters, and Relationships 137

Arguments 137

Exposed Filters 145

Relationships 148

Summary 151

Chapter 9: Theming Views 153

An Overview 153

Classes in Views 153

Template Files 156

Working with Templates 164

Summary 175

Chapter 10: Query Optimization 177

Balancing Development Time against CPU Time 177

Sticking with What Views Gives You 177

When You Need More Than Views 178

Experimenting with Your Site 183

Summary 183

Chapter 11: Views API 185

Data Architecture 185

The Views API 199

The Life Cycle of a View 201

The Database Schema and Data Hook 206

Handlers Versus Plugins 210

Summary 213

Part III: Panels

Chapter 12: Introducing Panels 217

Introduction to Panels 217

Modules 222

Summary 224

Chapter 13: Creating Panels 225

Your First Panel 225

Adding Content to Panels 237

Access Rules 244

Overriding Core Display Pages 246

Overriding Core Node Editing Pages 253

Summary 255

Chapter 14: Contexts, Relationships, and Arguments in Panels 257

Contexts 257

Arguments in Panes 264

Relationships 271

Summary 274

Chapter 15: Panels Theming 275

Layout 275

Stylizer 280

CSS in the Panels UI 284

CSS in Source Code 285

Summary 290

Chapter 16: Site Deployment 291

Configuring Your Development Environment 291

Moving to Production 293

Exporting Your Structures 294

Helper Modules 299

Summary 300

Part IV: Appendices

Appendix A: Other Useful Modules 303

Extending the Use of Your Modules 303

General Modules 303

Views 304

CCK 307

Panels 308

Appendix B: Reporting Issues 309

Submit a Complete Report 309

Read the Documentation 310

Check Other Sources 311

Know the Difference between a Bug and a Support Request 312

Stay on Topic 312

Understand the Life Cycle of a Bug 312

Be Patient 313

Remember That You’re Asking for Someone Else’s Time 314

Contribute Back 314

Appendix C: Views API Handlers and Plugins 315

Views Handlers 315

Views Plugins 317

Views Classes 318

Index 327

Read More Show Less

Customer Reviews

Average Rating 5
( 8 )
Rating Distribution

5 Star

(7)

4 Star

(0)

3 Star

(1)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 8 Customer Reviews
  • Anonymous

    Posted May 29, 2013

    Wheres the cck

    ?????

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 25, 2013

    I wanna join.

    He<e>ll no, bit<t>ch! Your just ruining RP. My dog is smarter than you. >:D

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 25, 2013

    Fox

    The MLS would like an alliance with you. We are a true cold blooded group of cats. We will take the forest together. Go to mls res 1.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 26, 2013

    Ally

    "Jumps in holding my ninja stars in my hands" So ya its me again! "Throws my ninja stars at the cck man" LEAVE THE CLANS ALONE OR ILL KILL YOU ALL!!!!!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 25, 2013

    Dark and Die to the "leader"

    We may be evil...BUT WHAT DAH FU<_>CK?!?! YOU A<_>SSHOLES GET YOUR BUTS OUT NNNOOOWWW!!! P.S. these cats are actully known...once a clan kicked me out cuz i rep them...Die growls and attacked the girl in the cloak...she slits her throught killing her...Dark yowls out her warning and joins Die in a paw for paw swipe team at the leader...after the set fire to the camp they pad off paw steps matching perfectly...P.S. they are identical twins and even have the same voice...each has a different tone but can match if they want to...Die hss a icy tone and Dark a tone that i cant even describe...i guess it sends goosebumps everywhere...thats all i can say...bio of dark at hated blood res 2...but they are the same and devoted to each other

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 26, 2013

    Ninja tocck

    Leave my embassy at once

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 25, 2013

    M

    You are cruel, terrible people. I will track you down and KILL you every time you attack a clan. Never again will you hurt another cat. EVER.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 25, 2013

    A girl in a dark cloak

    The cloak covers her face. May i join in the attack of eliminating clans? She asks.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 8 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)