Last updated April 5, 2007. Created by merlinofchaos on March 17, 2006.
Edited by add1sun, jlmeredith, hunmonk, Boris Mann. Log in to edit this page.

Fields are only applicable to a view if either the page or block type is set to List or Table view. If using a purely teaser view, fields will be ignored.

Fields tell Views exactly what to display and in what order.

The Fields section is a variable length list of fields. The icons to the right can be used to change the order of the fields, or remove them. To add a field to the list, simply choose one from the select box and click 'Add Field'.

Name
This is simply the name of the field.
Label
This is the label that will be associated with the field. If blank, its meaning changes depending on view type. In List View, blank labels simply won't be displayed. In Table View, however, blank labels will display the Name field as the default label.
Handler
The Handler is specific to a given field. Not all fields have handlers. It allows you to choose how a given field is displayed, if there is more than one choice. For example, date fields have several options to choose from: It can be displayed as an age, or as short/medium/long dates.
Sortable
If a field can be sorted at all, you can use this field to determine whether or not the user is allowed to sort it by clicking on the column header in a table view. This field has no meaning in a List View.
Default Sort
If any fields are set sortable, one and only one field should also be set as the default sort.

What follows are some of the fields that Views supplies by default. There can be many more fields than this! Modules can provide these as they like, but this is a nice overview of what is easily available.

Node: Title
Display the title of the node.
Node: Created Time
Display the post time of the node.
Node: Updated Time
Display the last time the node was updated.
Node: Type
The Node Type field will display the type of a node (for example, 'blog entry', 'forum post', 'story', etc)
Node: Author Name
This will display the author of the node.
Comment: Last Comment Time
This will display the last comment time.
Comment: Last Comment Author
This will display the name of the last user to comment on the post.
Comment: Count
This will display the comment count.
Taxonomy: All Terms
This will display all taxonomy terms associated with the node. Note that this causes one extra query per row displayed, and might have a minor performance impact.
Taxonomy: Terms for A Particular Vocabulary
This will display all taxonomy terms associated with the node that are members of the named vocabulary. Note that this causes one extra query per row displayed, and might have a minor performance impact.
Taxonomy: Term
This will display one of the taxonomy terms associated with the node; if taxonomy terms were used to filter or sort, it will be the one that triggered the sort or filter. Please note that if your node has multiple terms associated with it, this field can cause your post to show up multiple times!
Taxonomy: Term Description
This will display the description associated with a taxonomy term.

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

Option is a own coloum and i think it is missing in the description.

Thomas

Combining IT and arts to organize
http://www.it-arts.org/

Thomas

Combining IT and arts to organize
http://it-arts.org

The manual says:

This is the label that will be associated with the field. If blank, its meaning changes depending on view type. In List View, blank labels simply won't be displayed. In Table View, however, blank labels will display the Name field as the default label

However, in Table View it seems to be possible to hide the title by inserting "" in the "Label" field.

Greetings, -asb

I am trying to replicate the functionality of the Recent Blocks module using Views. The one item I can't seem to get right is the Replies Count field, where the output of that field is always a raw number on a single line, followed by a new line and the new replies count if any.

I'd like to get the whole Replies Count field to print out on a single line, such as '7 replies (6 new)'. Even better would be to only print the the number of new replies without having to print the replies count. Is there any way to do this, short of hacking the module PHP?

Thanks.

One thing I've noticed is that a Table View will ignore the "Sortable" attribute if the column doesn't have a Label.
(Probably due to making the Label the clickable link to do the sort.)

I am trying to add a line as a field, just to separate my other fields from one another, does anyone know how to do that?

Simply rewrite the field by activating the "rewrite field as..." option, and add html code, e.g.
[field_name]
Hope this helps!
Chris

hiii
i created a module. the module itself create a table to track user order. Now i want to see this field in views
How can i?

Thanks in adance.............
Prajila