Recipe 77: Override theme_views_view
We've taken a look at some sections of the theme_views_view
function in the previous recipe. Now let's take a closer look, to give us more power to control our view.
The theme_views_view
function may be roughly divided into six sections:
Title and Breadcrumb (for pages).
Header.
Exposed Filters (for pages, not blocks).
Content, or Summary view, plus the Footer. Also, for blocks only: the More link (alternatively, if there's no output, print the empty text).
Pager (pagers are only available for page views).
The final section that prints the view to the page.
Our recipe steps now begin:
Go to http://api.freestylesystems.co.uk/api/function/theme_views_view/5 and print out the theme_views_view function (alternatively, you may print the function directly from the
views.module
file).Using the following pages as a guide, identify the six different sections, and label them.
Once these separate sections are delineated, they may be shuffled around. Some common applications...