There is a lot of functionality around views. It is recommended you read through the official Views Module documentation.
This guide will just cover the bare functionality.
From drupal.org - Views overview:
Using the Views module, you can fetch content from the database of your site and present it to the user as lists, posts, galleries, tables, maps, graphs, menu items, blocks, reports, forum posts etc. Different content types including nodes, users, and other bundles can be displayed.
Views UI, a submodule within Views, provides a graphical interface underneath which lies a powerful SQL query builder that can access virtually any information in your database and display it in any format.
Different displays can present the query results as pages with fixed URLs on your site (or URLs accepting arguments), blocks, feeds, or panel panes.
If you enable the Views UI
module you can see all views in your system by going to Structure
-> Views
.
You can edit or delete a view by clicking the respective link for the view you wish to manipulate.
By editing a view, you can see the various components of a view:
-
The various displays inside a view:
You can add additional displays clicking the
Add
button. -
You can also use the views display menu for more options:
-
A display's title can be set here:
-
Additionally each display may have settings specific to the display type:
-
Depending on the format of your view, your view output can vary widely. Some include the ability to output specific fields, and others include options to output entities themselves. You will find the format here:
-
By clicking the current format name you can change the format being used:
-
Depending on your settings, you may have the ability to add fields for display:
-
By clicking the
Add
button you can choose from a large list of all available fields. (Note: You can add a field to just the particular display you are on, or all displays).
-
You can use certain fields and other criteria for filtering and sorting your results. (Note: You can "expose" filters and sorting criteria in a view, to allow users to specify these values dynamically)
-
By clicking the
Add
button you can choose from a large list of all available fields, filters and sorting criteria. (Note: You can add a field to just the particular display you are on, or all displays).
-
You can specify specific content for the views header, footer and also define the behavior when a view returns no results:
- If your site is configured for Multilingual support, you can specify language-specific settings for your results.
The advanced section provides functionality useful in more advanced use cases.
From drupal.org - Contextual filters:
Views is a highly flexible module to start with, but the contextual filters increase the use cases for the module by an order of magnitude. Contextual filters work similarly to regular filters, but there is one important difference. Instead of setting a filter value manually, the value is fetched from variables sent programmatically to the view. A regular filter could give you all nodes written by a specified user. A contextual filter for a node author would be able to display all nodes written by the currently viewed user, or the same user who wrote the currently viewed node. The concept is that contextual filters prepare a view for filtering, but the filter value is not yet determined. When the view is eventually called, it is also provided with data used to complete the contextual filters.
You can use Relationships to make connections from your view results to other entities. This is commonly done through entity reference fields. By making these connections you expose additional fields and information to views.
Advanced settings for a view's exposed filters.
Machine name
- The machine name for this specific displayAdministrative comment
- Leave comments for admins related to this particular view or displayUse AJAX
- Turns on AJAX processing for filters and paginationHide attachments in summary
- Hide attachments when displaying argument summaryContextual links
- Whether not to show contextual menu for this viewUse aggregation
- Aggregate results togetherQuery settings
- Advanced database optionsCaching
- View cache settingsCSS class
- Add CSS classes to your view