Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 5 Views Recipes

You're reading from   Drupal 5 Views Recipes 94 recipes to develop custom content displays for your Drupal web site

Arrow left icon
Product type Paperback
Published in May 2009
Publisher Packt
ISBN-13 9781847196965
Length 412 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (22) Chapters Close

Drupal 5 Views Recipes
Credits
About the Author
Acknowledgement
About the Reviewer
Preface
1. Introduction to Views FREE CHAPTER 2. Working with Default Views 3. CCK and Views 4. Dates and Calendars 5. Views and Tools for Administrators 6. Views Galore 7. Theming and Layout 8. Navigating the Online Drupal Community Default Views in Drupal 5 Modules
Formatters
Style Plugins
Views Hooks for Coders
Modules Included in Recipe Ingredients
Additional Resources and Modules Mentioned in Recipes
Selected Noteworthy Patches to Views
Index

Recipe 38: Summary Views


Note

Ingredients

Completed Recipe 34, Summary View

Views offers a wonderful feature, called Summary Views, available in the Argument fieldset. It creates a hyperlinked list of topics with a count of items.

  1. Edit the summary view, created in Recipe 34.

  2. Add the Datestamp: Workshop Date argument, with the following settings:

    Default

    Summary, sorted ascending

    Title

    Workshops in %1

    Option

    summarize by month

    Wildcard

    all

  3. Enjoy the View.

  4. Click on a month link. Notice that the month is included as an argument in the URL. The title of the page substitutes the month for the %1 (%1 was also used in Recipe 16).

  5. Try out the wildcard at http://YOURSITE.com/summary/all

    All the workshops are displayed, using the pager count of 10.

  6. We would like the view to display up to 10 workshops per page but prefer to display the next 12 months in the Summary View—so we will add argument handling code to the view. Edit the view at summary/edit. In the Arguments fieldset open the Argument Handling...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image