Adding a dynamic view to a page

One of the important features that makes the Panels module so flexible is that it allows us to add views to a page's regions. In this recipe, we will not only be adding a preexisting view to a page, but we will be supplying an argument to the view, via the panel, to filter it.

In this recipe, we will be making use of the Glossary view, which is one of the sample views shipped with the Views module. The Glossary view accepts an alphanumeric argument to filter the view to display glossary terms for the supplied letter, which is why it's termed a dynamic view.

This recipe illustrates the way in which a dynamic view can have its argument supplied through the Panel, meaning that a view can be recycled on different pages, ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.