Format

Last updated on
1 December 2016

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

The Format setting controls the overall format for the list of information in your view.

By default, you can choose from these formats:

Option What it does HTML tags Settings
Grid shows the item in a grid with two or more items across <table><tr><td> number of columns in the grid; whether to fill the grid from left to right (horizontally) or top to bottom (vertically)
HTML list uses HTML tags to create a numbered or bulleted list <ul><li> or <ol><li> ordered (numbered) or unordered (bullet) list
Jump menu creates a drop-down list with an optional Go button to let users jump to a particular item <form><select> button text for the Go button; label for the selector; text for the pre-selected option in the selector
Table shows the items in a table, with a separate column for each field you want to display <table><tr><td> for each field in the table, you can select which column will hold it (so you can combine fields into one column), how to align text in the column, the separator between items in the column, whether the column is sortable, whether it's the default sort column, and whether to hide the column if it's empty
Unformatted list displays unformatted divs <div> (none)

You may have additional options if you've installed other modules, such as Views Slideshow, Calendar, or GMap (Google Maps) - to name just a few.

In addition to the Settings options shown above, most formats let you specify whether to add default CSS classes to each row of output (giving you extensive control over CSS theming for each row) and whether to add striping CSS classes (to make it easier to add striping or special CSS for the first and last rows).

What's the difference between Grid and Table?

A grid combines an entire row in each cell, like this:

Row 1

Oslo
museum visit

Row 2

Singapore
concert

Row 3

Chicago
walking tour

Row 4

Montevideo
parade

Row 5

Budapest
concert

Row 6

London
lecture

Row 7

Dakar
park visit

Row 8

Dublin
gallery opening

Row 9

Brisbane
park visit

Row 10

San Francisco
museum visit

Row 11

Victoria
movie

Row 12

Osaka
walking tour

A table separates fields into columns, like this:

Title City Event
Row 1 Oslo museum visit
Row 2 Singapore concert
Row 3 Chicago walking tour
Row 4 Montevideo parade
Row 5 Budapest concert
Row 6 London lecture
Row 7 Dakar park visit
Row 8 Dublin gallery opening
Row 9 Brisbane park visit
Row 10 San Francisco museum visit
Row 11 Victoria movie
Row 12 Osaka walking tour

Help improve this page

Page status: No known problems

You can: