Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Writing Custom Area Handlers

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:03
    [Chapter 15] [with Joe Shindelar]
  • 0:05
    In this chapter, we're going to take a look at creating area handlers for Views.
  • 0:09
    Area handlers function a lot like field handlers.
  • 0:12
    The difference, though, is that these are going to create, essentially, fields
  • 0:16
    that can be used inside of the empty text or footer text
  • 0:19
    or the header text of our view.
  • 0:21
    In this area handler,
  • 0:23
    we're going to show how we can use Views to calculate a sum.
  • 0:27
    It's going to loop through all of the results that are returned by our view,
  • 0:30
    and then in the footer of the view we'll be able to add our area handler field
  • 0:03
    [Capítulo 15] [com Joe Shindelar]
  • 0:05
    Nesse capítulo, iremos dar uma olhada na criação de handlers de área para Views.
  • 0:09
    Handlers de área funcionam de maneira semelhante a handlers.
  • 0:12
    Porém, a diferença, é que esses irão, essencialmente, criar fields
  • 0:16
    que podem ser usados dentro do texto vazio ou texto do footer
  • 0:19
    ou texto do header da nossa view.
  • 0:21
    Nesse handler de área,
  • 0:23
    iremos mostrar como podemos usar Views para calcular uma soma.
  • 0:27
    Isso irá iterar todos os resultados que são retornados pela nossa view,
  • 0:30
    e depois no footer da view poderemos adicionar nosso field do handler de área

Writing Custom Area Handlers

Loading...

Area handlers are used in the header, footer and empty text areas when creating a View. In this lesson, we’ll walk through creating our own area handler that can be placed in the footer to provide a summary of all the rows in our View.

Downloads: 
Log in or sign up to download companion files.

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.