---
title: "View variable element"
date: "2019-07-03T10:44:54+00:00"
summary: "Customize Drupal views with Site Studio's View variable element. Learn how to add headers, footers, rows, and more to your view templates for enhanced content display and user experience."
image:
type: "page"
url: "/drupal-starter-kits/add-ons/site-studio/view-variable-element"
id: "1323639b-dd4d-4219-b213-1d2827934198"
---

Table of contents will be added

Use the view variable element to add a variable that's available in your view. The variables themselves are configured within the Drupal views user interface.

Locating the view variable
--------------------------

To find the View variable element:

1.  Navigate to Site Studio > Templates > **View templates**
2.  **Create** or **Edit** a View template
3.  Click the **+ button** on the Layout canvas
4.  Within the Elements tab, look for the View variable element.

![190ec571-view-variable-element.png](https://acquia.widen.net/content/40e8d153-da7c-44f7-a87b-e1b0c51e2c36/web/190ec571-view-variable-element.png)

It includes these configuration settings:

View variable 
--------------

*   **Variable** - Select the view variable to display
    *   **Header** \- display the header configured within the Drupal view
    *   **Footer** - display the footer configured within the Drupal view
    *   **Rows** - display the view rows
    *   **Empty** \- display the no results behavior configured within the Drupal view
    *   **Pager** - display the views pager configure within the Drupal view
    *   **Exposed -** display all exposed elements within the Drupal view
    *   **Feed icons** - display the feed icons
    *   **More** - display a more link configured within the Drupal view
    *   **Title** \-  display the Title set within the Drupal view
    *   **Attachment before** - display the configured Drupal view attachment before
    *   **Attachment after** - display the configured Drupal view attachment after

Comments
--------

*   **Add comments -** Add comments to the Element.  For more information, see [Adding comments to an element](/drupal-starter-kits/add-ons/site-studio/adding-comments-element "Adding comments to an element").