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.

Views Access Plugin

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 17 with Addison Berry]
  • 0:05
    In addition to handlers, you can also write another addition
  • 0:09
    to Views called plugin.
  • 0:12
    Handlers actually handle the query part, so what fields are available,
  • 0:16
    how would I like to sort things, things of that nature
  • 0:19
    that actually do the query that will give you your result set.
  • 0:23
    When you're looking at plugins, you're talking about
  • 0:26
    working with the output, so what kind of HTML, or do you not want HTML?
  • 0:32
    Do you want some other kind of format
  • 0:34
    and other meta information around it
  • 0:03
    [Capítulo 17 com Addison Berry]
  • 0:05
    Em adição aos handlers, você pode também escrever outra adição
  • 0:09
    a Views chamada plugin.
  • 0:12
    Handlers na verdade tratam da parte da query, então quais fields estão disponíveis,
  • 0:16
    como eu gostaria de ordenar as coisas, coisas dessa natureza
  • 0:19
    que na verdade fazema query que irá lhe dar o conjunto de resultados.
  • 0:23
    Quando você está olhando para plugins, você está falando sobre
  • 0:26
    trabalhar com o output, então qual tipo de HTML, ou você não quer HTML?
  • 0:32
    Você quer algum outro tipo de formato
  • 0:34
    e outras meta-informações sobre isso

Views Access Plugin

Loading...

In our original Databasics module, we had some access control around who could see the tab we are providing on the user page. Now that we have switched that tab to being a view, we need to still add that access control back. In this lesson, we will work with a new feature of Views: plugins. We will create an access plugin that gives us the freedom to add our own custom access control, along with settings to give our users a choice about what access they'd like to use.

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