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.
Edit the summary view, created in Recipe 34.
Add the Datestamp: Workshop Date argument, with the following settings:
Default
Summary, sorted ascending
Title
Workshops in %1
Option
summarize by month
Wildcard
all
Enjoy the View.
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).
Try out the wildcard at
http://YOURSITE.com/summary/all
All the workshops are displayed, using the pager count of 10.
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...