Book Image

Drupal 7 Views Cookbook

By : J. Ayen Green
Book Image

Drupal 7 Views Cookbook

By: J. Ayen Green

Overview of this book

<p>Fully revised and updated for 2016, Drupal 7 Views Cookbook allows you to bypass most of the Views' learning curve and quickly take advantage of the capabilities of the Views module to select and present your Drupal content through step-by-step instructions for quickly developing dozens of useful views.</p> <p>Starting with a brief introduction to Views, Drupal 7 Views Cookbook takes you through recipes for elementary views, such as displaying randomly selected content, to intermediate views, such as customizing links, to advanced views providing multiple interacting displaysof content on the same page<a name="_GoBack"></a>. Along the way, there are recipes for theming views, creating a view in your code, creating a custom view handler, administering views, and finally, using some other modules related to the Views module. Most recipes are standalone, so pick them in any order!</p> <p>Don't limit your site with dull presentation of content in last-in-first-out order. Empower your site visitors with the recipes that Drupal 7 Views Cookbook delivers!</p>
Table of Contents (17 chapters)
Drupal 7 Views Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Bundle: Sponsor


This is used in the following recipes:

  • Creating a paged block display of Chapter 2, Basic Custom Views

  • Creating a dynamic links display block of Chapter 2, Basic Custom Vie ws

Details

Name

Comments

Author information

Sponsor

None

None

Field

Type

Format

Sponsor logo (field_sponsor_logo)

Image

Thumbnail

Creating bundle: Sponsor...

  1. Navigate to admin/structure/types.

  2. Click +Add content type.

  3. Enter Sponsor into the Name textbox.

  4. Enter Event sponsor in the Description textbox.

  5. Enter Sponsor name in the Title textbox.

  6. Click the Display settings vertical tab.

  7. Uncheck the Display author and date information checkbox.

  8. Click the Comment settings vertical tab.

  9. Select Hidden from the Default comment setting for new content select box.

  10. Click the Menu settings vertical tab.

  11. Uncheck the Main menu checkbox.

  12. Click the Save and add fields button.

  13. Under Add new field, enter Sponsor logo in the Label textbox.

  14. Select Image from the Type of data to store select box.

  15. Click the Save button.

  16. Click the Save field settings button.

  17. Click the Save settings button.

  18. Click the Manage Display tab.

  19. Click the Teaser button.

  20. Select <Hidden> from the LABEL (column) select box for the Sponsor logo field (row).

  21. Select Image from the FORMAT (column) select box for the same field (row).

  22. Click the settings gear icon for the Sponsor logo field (row).

  23. Select Thumbnail (100x100) from the Image style select box.

  24. Click the Update button.

  25. Select <hidden> from the LABEL (column) select box for the Body field (row).

  26. Click the Save button.