Drupal 6 Attachment Views

Book description

Use multiple-display views to add functionality and value to your site!

  • Quickly learn about painlessly increasing the functionality of your Drupal 6 web site

  • Get more from your Views than you thought possible

  • Topics provide rapid instruction and results

  • Concise, targeted information rather than voluminous reference material

  • An informal, interactive style

  • In Detail

    The Drupal View modules give you the flexibility and freedom to customize the display of your web site's content. Defining custom content types is easy; however, it's also possible to use various content types in a complementary manner on the same page! Attachment displays in Views (also known as Attachment Views), are a way to customize your web site with multiple displays that interact with each other and turn a nice site into a spectacular one.

    This hands-on tutorial will teach Drupal developers across the experience spectrum how to use Attachment displays in Views, to make quick progress in functionality and added-value to users! Views are a common way to display a collection of similar content types on one page. What do you do if you want to display different content types simultaneously? What if you want to allow a user to interactively select which content they want, without using a menu? You can actually have more than one display within a view and views within a view.

    This book starts by introducing Attachment Views as reader activities. Here, we create a single Attachment View and take a closer look at giving each page an interactive feel. It also shows you to create a View with an Attachment View. Later, using practical examples, it helps you to develop a 3-view composite display using two and three custom content types. You will also be able to develop a composite display using multiple Attachment Views, to provide a control panel of sorts from which you can view the various content types. Finally, we will put the home page together making use of Views, blocks, a flash slide show, and other pieces.

    This book provides several examples of introducing additional displays onto a web page, and having them interact with each other. The result is pages that provide several types of information and behave more like a desktop application, increasing the value to your site visitors.

    An informative guide to quickly adding functionality to your Drupal site via step-by-step examples using view attachments

    Table of contents

    1. Drupal 6 Attachment Views
      1. Drupal 6 Attachment Views
      2. Credits
      3. About the Author
      4. About the Reviewers
      5. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Errata
          2. Piracy
          3. Questions
      6. 1. Something Old, Something New
        1. Content management systems
        2. Creating a taxonomy vocabulary
          1. Creating a View
          2. Narrowing the selection
          3. Creating the menu choice
          4. The project site
        4. Summary
      7. 2. Attachment Views — A New Beginning
        1. What is an Attachment view?
        2. Reviewing the view requirements
        3. Activity 2-1—Subcontractor page view
        4. Activity 2-2—Subcontractor Attachment view
        5. Theming the subcontractor view
          1. The makeup of a theme
          2. Selecting a template file
          3. Activity 2-3—Creating the view template file
        6. Summary
      8. 3. Interactive Page Regions
        1. Activity 3-1—Configuring the contact subsystem
        2. Activity 3-2—Creating the contact-us view
        3. Activity 3-3—The Guild Builders module
          1. Creating the .module file
        4. Activity 3-4—Adding CAPTCHA to the Contact form
        5. Adding a Contact info Attachment view
        6. Activity 3-5—Creating the contact-us Attachment view
        7. Summary
      9. 4. Additional Displays
        1. Activity 4-1—Creating the Subs Page display
        2. Activity 4-2—Creating the Subs Attachment display
        3. Activity 4-3—Creating the Jobs block
        4. Activity 4-4—Creating the Management Page display
        5. Summary
      10. 5. Bios
        1. Activity 5-1—Creating the Bio view
        2. Activity 5-2—Creating the Page
        3. Activity 5-3—Creating the Bio Attachment display
        4. Activity 5-4—Creating the Prior Jobs Attachment display
        5. Activity 5-5—Theming the Bio view
        6. Summary
      11. 6. Prior Work
        1. Activity 6-1—Creating the job selection display
        2. Activity 6-2—Creating the prior-work Page display
        3. Activity 6-3—Creating the prior-work Bio Attachment display
        4. Activity 6-4—Creating the Job Attachment display
        5. Activity 6-5—Theming the prior-work view
        6. Summary
      12. 7. A Different 'About Us'
        1. Activity 7-1—Creating the About Us view
        2. Activity 7-2—Creating the Bio Page display
        3. Activity 7-3—Creating the prior-work display
        4. Activity 7-4—Creating the About Us Page display
        5. Activity 7-5—Creating the Bio Attachment display
        6. Activity 7-6—Creating the prior-work Attachment display
        7. Summary
      13. 8. Control Panel
        1. Activity 8-1—Creating the Control Panel view
        2. Activity 8-2—Creating the Page display
        3. Activity 8-3—Creating the Attachment displays
        4. Activity 8-4—Creating the other Attachment displays
        5. Activity 8-5—Configuring the Page display
        6. Activity 8-6—Theming the Attachment displays
        7. Summary
      14. 9. Front (Home) Page
        1. Activity 9-1—Making a role-specific menu
        2. Activity 9-2—Creating a peekaboo login box
        3. Activity 9-3—Adding a Theme region
        4. Activity 9-4—Creating a News block
        5. Activity 9-5—Creating an RSS Feed
        6. Summary
      15. 10. Punch List
        1. Administrative Theme
        2. Clean URLs
        3. Error reporting
        4. File system
        5. Input formats
        6. Logging and alerts
          1. Database logging
        7. Performance
        8. Search settings
        9. User management
          1. Roles
        10. Permissions
          1. Block module
          2. Comment module
          3. Contact module
          4. Content module
          5. Node module
          6. Path module
          7. Search module
          8. Statistics module
          9. System module
          10. Taxonomy module
          11. Upload module
          12. User module
        11. Summary
      16. A. Add-On Modules
        1. Captcha
        2. CCK
        3. Contact form blocks
        4. Content profile
        5. Custom (form) destination
        6. Date
        7. Embed Google Maps field
        8. File field
        9. Form markup
        10. ImageAPI
        11. ImageCache
        12. Image field
        13. Menu per role
        14. Rules
        15. Token
        16. Utility
      17. B. Custom Content Types
        1. CCK
        2. Content types in the Guild Builders site
          1. About-Us Info
          2. Bio
          3. Job
          4. Location
          5. Subcontractor

    Product information

    • Title: Drupal 6 Attachment Views
    • Author(s):
    • Release date: February 2010
    • Publisher(s): Packt Publishing
    • ISBN: 9781849510806