O'Reilly logo

Drupal 7 Cookbook by Dylan James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required