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.

Tour of popular page template variables

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:08
    Hi, everyone, my name is Michelle, and in this chapter,
  • 0:10
    I want to talk to you about the variables
  • 0:12
    that are available to you in your templates.
  • 0:15
    Previously, you discussed how to display your site name.
  • 0:20
    Right now, your site name is, This is awesome,
  • 0:23
    and you can go ahead and you can make that change in your configuration files.
  • 0:27
    Let's go take a look at the code that prints this out
  • 0:29
    and how we got this to display.
  • 0:32
    So I'm going to go into my files,
  • 0:36
    we're going to go into sites, themes,

Tour of Popular Page Template Variables


Takes a tour through some of the more useful template variables, and more ways of determining the available variables by adding the following code to a page template: <?php kpr(get_defined_vars()); ?>

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