Details zum E-Book

Drupal 5 Views Recipes. 94 recipes to develop custom content displays for your Drupal web site

Drupal 5 Views Recipes. 94 recipes to develop custom content displays for your Drupal web site

Marjorie Roswell, Dries Buytaert

E-book
The Drupal View modules give you flexibility and freedom to customize the display of your web site's content. Although there are more than 100 views-enabled modules, few site administrators use Drupal Views to its full potential.
This book will enable you to realize the fullest potential of this powerful resource by providing a wide variety of powerful recipes for creating and displaying a wide variety of views ñ essential classics you will use again and again to innovative display methods that will make your Drupal site stand out. Pick and choose the ones you would like to prepare for your web site.
In this book you will find ninety-four recipes to create a wide selection of views. The list includes event listings, interactive calendars and timelines, maps, proximity search, podcasting, carousels, Views Fusion, and many more. You will also explore default views, views with CCK, and master a variety of ways to associate views with related content.
Most people think of Views for site visitors. But Views can also be handy for site administrators. You will get to know the Views Bulk Operations module, along with Editable Fields, and Views Custom Fields. (You'll probably wonder why you never used them before!)
If you want to take Views to the next level, the book contains a code-rich chapter on theming. However, you will find most of the recipes detailed by the author do not require any original coding at all.
As you progress through the recipes, you will be immersed in such Drupal Views topics as fields, arguments, filters, exposed filters, sorting, style plug-ins, formatters, cloning and copying views.
Because Drupal is a worldwide and ever adapting system, the author also includes great tips and resources for navigating the online Drupal community and expanding your knowledge of the recipes.
Finally, there is an extensive Appendix, which includes listings of all default views, formatters and style plug-ins for Drupal 5, along with a categorized list of patches.
  • Drupal 5 Views Recipes
    • Table of Contents
    • Drupal 5 Views Recipes
    • Credits
    • About the Author
    • Acknowledgement
    • About the Reviewer
    • 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 for the book
        • Errata
        • Piracy
        • Questions
    • 1. Introduction to Views
      • Recipe 1: Installing the Views module
        • Finding or creating the <DRUPALROOT>/sites/all/modules directory
        • Downloading and uncompressing the module
        • Enabling the module
        • Recipe notes
          • Command line tips
      • Recipe 2: Views-related URLs on your site
        • Recipe notes
      • Recipe 3: Creating a "Swim Groups" Page View
        • Creating a new Content type (Swim Group), and adding content
        • Creating a View
        • Selecting Filters
        • Recipe notes
      • Recipe 4: Adding a Header to your View
        • Recipe notes
      • Recipe 5: Adding a View to a Menu
        • Recipe notes
      • Recipe 6: Creating a Block of Swim Groups
        • Recipe notes
      • Recipe 7: Creating an "Admin" Role and setting Access Permissions
        • Installing the Admin Role module
        • Adding an Admin Role
        • Configuring the Admin Role module
        • Creating a User for the Admin Role
        • Recipe notes
      • Recipe 8: Installing Firefox and Firebug
        • Installing Firefox
        • Installing Firebug
        • Recipe notes
      • Recipe 9: Revealing the full extent of Views
        • Ensure that Firefox and Firebug are installed (See Recipe 8)
        • Running the jQuery command
        • Recipe notes
      • Recipe 10: Preparing Views Worksheets
        • Recipe notes
      • Summary
    • 2. Working with Default Views
      • Recipe 11: Adding "Recent Comments" to your site
        • Overriding the View
        • Configuring the Block
        • Configuring the Date Field
        • Recipe notes
      • Recipe 12: The frontpage View
        • Teaser List
        • Node Feed Selector Argument
        • Enabling the Views RSS module
        • Looking at the Frontpage View, and Overriding it
        • Basic Information fieldset
        • Page fieldset
        • Fields fieldset
        • Feed Selector Argument
        • Filters fieldset
        • Sort Criteria fieldset
        • Enabling the frontpage View to show on the front page
        • Removing duplicate search engine results
        • Recipe notes
      • Recipe 13: Read More link
        • Recipe notes
      • Recipe 14: All-time Popular, and Recent Popular Pages
        • Enabling Statistics
        • Overriding the Default Views
        • The Menu Options
        • Recipe notes
      • Recipe 15: All-time Popular, and Recent popular Blocksremoving the hit count
        • Adding the blocks to a region
        • Removing the hits from the popular_alltime block
        • Recipe notes
        • Another alternative
        • User-submitted snippets
      • Recipe 16: Taxonomy View
        • Recipe notes
      • Recipe 17: Fixing the case of the missing Taxonomy term
        • Recipe notes
      • Recipe 18: Empty Text, with PHP
        • Generating a list of Regional categories
        • Recipe notes
      • Recipe 19: Getting to know the Tracker
        • Recipe notes
      • Recipe 20: Making the Tracker Sortable
        • Recipe notes
      • Recipe 21: Integrating the Tracker View with the Tracker module
        • Recipe notes
      • Recipe 22: Reviewing Default Views code
        • Recipe notes
      • Recipe 23: Creating a Default View
        • The ".info" file
        • Default Views function in a ".inc" file
        • Including the Default View in a ".module" file.
        • Recipe notes
      • Summary
    • 3. CCK and Views
      • Recipe 24: Addressing the Views Body Field issue
        • Demonstrating the Body Field issue
        • Copying the Body Field, and modifying the View
        • Recipe notes
      • Recipe 25: Creating Website snapshots
        • Installing modules
        • Creating a Content Type
        • Adding the Link Field
        • Create a Website Snapshots View
        • Recipe notes
      • Recipe 26: Creating a Blogroll
        • Modifying the Link Field
        • Creating a new view based on website_snapshots
        • Placing the Blogroll Block
        • Recipe notes
      • Recipe 27: Displaying Guitar Chords
        • Recipe notes
      • Recipe 28: Using the Viewfield module
        • Installing modules
        • Views, Taxonomy, and Content setup
        • Associating the View with a Content item
        • Recipe notes
      • Recipe 29: Using the Node Reference module
        • Enabling the modules
        • Creating the Media Hit and Press Release Content types
        • Adding Press Releases
        • Creating drop-down Press Release View
        • Modifying and populating the Media Hit Content type
        • Recipe notes
      • Recipe 30: Relating Content types with Reverse Node Reference
        • Recipe notes
      • Recipe 31:Embedding a View in a Theme template
        • Recipe notes
      • Recipe 32: Displaying mini-pie charts
        • Setting up the Pie Chart Content type and View
        • Install and configure sIFR
        • Recipe notes
      • Summary
    • 4. Dates and Calendars
      • Recipe 33: Understanding Date formats
        • Recipe notes
      • Recipe 34: Block of upcoming workshops
        • Recipe notes
      • Recipe 35: Exposed Filters
        • Recipe notes
      • Recipe 36: Views Date Range Filter module
        • Recipe notes
      • Recipe 37: Exposed Filter settings
        • Recipe notes
      • Recipe 38: Summary Views
        • Recipe notes
      • Recipe 39: Date Browser
        • Recipe notes
      • Recipe 40: Timeline
        • Recipe notes
      • Recipe 41: Views Popup
        • Recipe notes
      • Recipe 42: Creating a Calendar
        • Installation and configuration
        • View setup
        • Installing Calendar Blocks
        • Recipe notes
      • Recipe 43: iCal feeds
        • Import Calendar items
        • Export Calendar items
        • Recipe notes
      • Recipe 44: Upgrade Date and Calendar modules
        • Backing up the Database
          • Approach 1: Backup with mysqldump
          • Approach 2: Backup with the Drupal Backup and Migrate module
        • Upgrading Calendar and Date
        • Recipe notes
      • Summary
    • 5. Views and Tools for Administrators
      • Recipe 45: Administration menu
        • Recipe notes
      • Recipe 46: ModuleInfo
        • Recipe notes
      • Recipe 47: Views UI permissions
        • Recipe notes
        • Recipe 48: Views UI Sort
        • Recipe notes
      • Recipe 49: Editablefields
        • Recipe notes
      • Recipe 50: Views Bulk OperationsContent administration
        • Recipe notes
      • Recipe 51: Views Bulk OperationsTaxonomy assignment
        • Recipe notes
      • Recipe 52: Views Custom Field
        • Recipe notes
      • Recipe 53: Cron setup
        • Example 1: Setting up Cron using cPanel
        • Example 2: Setting up Cron on a Linux box
        • Example 3: Using the Poormanscron module
        • Recipe notes
      • Recipe 54: Formatting Views queries
        • Recipe notes
      • Summary
    • 6. Views Galore
      • Recipe 55: Views Fusion
        • Patch the Node Reference module
        • Views setup
        • Views Fusion installation and configuration
        • Recipe notes
      • Recipe 56: Views Fast Search
        • Setup
        • Using the Default View
        • Using an Alternative Imported View
        • Replacing the Search block
        • Recipe notes
      • Recipe 57: YouTube Video Bar
        • Recipe notes
      • Recipe 58: Views Bonus Pack Export
        • Recipe notes
      • Recipe 59: Photo Gallery
        • Set up the Photo Content type
        • Configure ImageCache
        • Add Photos
        • View setup
        • Recipe notes
      • Recipe 60: Gallery with Lightbox2 and jQuery Update
        • Installing jQuery Update
        • Installing Lightbox2
        • Recipe notes
      • Recipe 61: Google Maps
        • Setup Google Maps Tools
        • Create and populate the Content types
        • View setup
        • Recipe notes
      • Recipe 62: Proximity Search
        • Recipe notes
      • Recipe 63: Views Calculations
      • Recipe 64: Podcasting
        • Setup
        • Adding content
        • View setup
        • Recipe notes
      • Recipe 65: Using the Flag module for Bookmarks
        • Default Bookmarks View
      • Recipe 66: Using the Flag module for various use cases
        • Viewing a List of inappropriate comments
        • Creating a view for Fact-Checkers
        • View of RSVPs
        • Recipe notes
      • Recipe 67: Explore more Views, Galore
        • Views Checkboxes
        • Phoneblogz
        • Default Views
      • Summary
    • 7. Theming and Layout
      • Recipe 68: Themeable functions reference
        • Recipe notes
      • Recipe 69: Displaying Themeable function names in Source Code
        • Recipe notes
      • Recipe 70: Using Panels with SimpleFeed
        • Setup
        • Creating Feed Content
        • Create Views
        • Enabling specific Views for Panels
        • Panels setup
        • Placing Panels on the Front Page
        • Recipe notes
      • Recipe 71: Tweaking output with hook_link_alter
        • Recipe notes
      • Recipe 72: Debugging
        • Recipe notes
      • Recipe 73: Node-feed-item.tpl.php
        • Recipe notes
      • Recipe 74: Format the Pager with CSS-only modifications
        • Recipe notes
      • Recipe 75: Overriding the theme_pager function
        • Recipe notes
      • Recipe 76: Understanding how Theme functions are called
        • Recipe notes
      • Recipe 77: Override theme_views_view
        • Recipe notes
      • Recipe 78: Total Item count
        • Recipe notes
      • Recipe 79: Views Theme Wizard
        • Frequently asked Questions:
        • Recipe notes
      • Recipe 80: Date badge
        • Recipe notes
      • Recipe 81: Grouped View
        • Recipe notes
      • Recipe 82: Body classes
        • Recipe notes
      • Recipe 83: Carousel View
        • Recipe notes
      • Recipe 84: Views Dashboardcode approach
        • Recipe notes
      • Recipe 85: Views Dashboardmodule approach
        • Recipe notes
      • Recipe 86: Great Online Theming resources
      • Summary
    • 8. Navigating the Online Drupal Community
      • Recipe 87: Creating an issue Page Bookmark
        • Recipe notes
      • Recipe 88: Searching the Views issue queue
        • Basic Search
        • Advanced Search
        • Recipe notes
      • Recipe 89: Posting an issue
        • Posting a New issue
        • Responding to an existing issue
        • Recipe notes
      • Recipe 90: Applying a Patch
        • Recipe notes
      • Recipe 91: Creating a Patch
        • Recipe notes
      • Recipe 92: Installing a Search plugin for the Contributions API
        • Recipe notes
      • Recipe 93: Using IRCreal-time technical support
        • Recipe notes
      • Recipe 94: Exploring Resources
      • Summary
    • A. Default Views in Drupal 5 Modules
    • B. Formatters
    • C. Style Plugins
    • D. Views Hooks for Coders
    • E. Modules Included in Recipe Ingredients
    • F. Additional Resources and Modules Mentioned in Recipes
    • G. Selected Noteworthy Patches to Views
    • Index
  • Titel: Drupal 5 Views Recipes. 94 recipes to develop custom content displays for your Drupal web site
  • Autor: Marjorie Roswell, Dries Buytaert
  • Originaler Titel: Drupal 5 Views Recipes. 94 recipes to develop custom content displays for your Drupal web site
  • ISBN: 9781847196972, 9781847196972
  • Veröffentlichungsdatum: 2009-05-27
  • Format: E-book
  • Artikelkennung: e_3cjh
  • Verleger: Packt Publishing