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: Extension


This is used in the Page, block, and attachment recipe of Chapter 4, Creating Advanced Views.

Details

Name

Comments

Author information

Extension

None

None

Field

Type

Format

Employee ID (field_employee_id)

Text

Text area

Creating bundle: Extension...

  1. Navigate to admin/structure/types.

  2. Click +Add content type.

  3. Enter Extension into the Name textbox:

    1. Enter Employee extensions in the Description textbox.

    2. Enter Extension in the Title field label textbox.

    3. Click the Display settings vertical tab.

    4. Uncheck the Display author and date information checkbox.

    5. Click the Comment settings vertical tab.

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

    7. Click the Save and add fields button.

  4. Under Add new field, enter Employee into the Label textbox:

    1. Select Node reference from the Type of data to store select box.

    2. Choose Select list from the Form element to edit the data select box.

    3. Click the Save button.

    4. Check the checkbox for Employee and click the Save field settings button.

    5. Click the Save settings button.

  5. Click the delete link for the Body field and confirm the deletion.

  6. Click the Save button.