Skip to main content

End user friendly access to header and footer texts in views

CEO, Co-Founder
Dec 26, 2008

edit header and footer text in views
Views 2 has undergone significant improvements to it's UI over Views 1. But even for moderately experienced Drupal users it can still be a bit overwhelming. When I need to show the edit views form to a customer who just wants to tweak the header or footer text on a view, that's just plain wrong. There are of course a couple of hacks to get around this:
  • view + some form_alter magic: This is probably the most obvious solution. When your site admin clicks on the edit tab, everything but the header and footer text are hidden. This seems like a lot of trouble and things will get messy with the Views 2 UI.
  • page + block view: If you only need a header text on the page where visitors will enter a view (e.g. your view doesn't contain more elements than what fits on 1 page) you could make a page with a block view in the content area. We have been using this solution a lot: end users don't need to understand the difference between a view and a page "page": they can click the edit tab and change the content.
  • view + blocks: If you need both a header and a footer, or if you need the text to show on all pages of a view you could add a header and/or footer block. With the block editing menu system in the Zen theme your user can then again click the button to edit the text (If you don't know what I'm talking about, check out the Zen theme).
  • In your opinion should we have a separate permission setting for editing basic settings on a view? Or do you have a better solution?

Kristof Van Tomme is an open source strategist and architect. He is the CEO and co-founder of Pronovix. He’s got a degree in bioengineering and is a regular speaker at conferences in the API, developer relations, and technical writing communities. He is the host of the Developer Success & the Business of APIs and the API Resilience podcasts.

Newsletter

Articles on devportals, DX and API docs, event recaps, webinars, and more. Sign up to be up to date with the latest trends and best practices.

 

Subscribe