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.

Alternate resources: 

Creating an attachment display

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:02
    WITH A CONTEXTUAL FILTER
  • 0:07
    KAREN STEVENSON: In this section, we're
  • 0:09
    going to talk about how to control the content of a View
  • 0:11
    based on the path that someone's on.
  • 0:14
    The time when you might want to use something like that is where you
  • 0:16
    want to be able to give somebody a path or a URL,
  • 0:20
    and have a certain thing appear when you are on that path.
  • 0:23
    So if you go to node something-- 5-- you
  • 0:26
    want to see information related to that node-- that kind of thing.
  • 0:30
    So we can do this in Views with contextual filters.
  • 0:02
    Com um Filtro Contextual
  • 0:07
    KAREN STEVENSON: Nessa seção, iremos
  • 0:09
    falar sobre como controlar o conteúdo de uma View
  • 0:11
    baseado no caminho que alguém está.
  • 0:14
    Você talvez queira usar isso quando
  • 0:16
    você quiser dar um caminho ou URL para alguém
  • 0:20
    e ter uma certa coisa aparecendo quando você está nesse caminho.
  • 0:23
    Então se você for em node/ alguma coisa - 5 - você
  • 0:26
    quer ver informações relacionadas a esse node - esse tipo de coisa.
  • 0:30
    Então podemos fazer isso em Views com filtros contextuais.

Creating Dynamic Views with a Contextual Filter

Loading...

Goes through the process of creating dynamic views with contextual filters by taking the content ID (i.e. the node it) from the URL and inserting that value as an argument for the views query. In the end, we're able to create a tab that shows all of the job applications for a particular job and have that view show up on the related job posting node.

This video series will continue the Job Board example from the Fields for Site Builders series where we will discover ways to display all of the job postings, allow people to find the one they are looking for and easily apply for it.

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