The Views API also covers a views render layer and describes a template naming convention and hierarchy that can be used to create template overrides within a theme. The API consists of a collection of plugin types and hooks exposed by the Views module and described within file of the Views module in Drupal core. In situations when the options provided by Drupal core and existing contributed modules are not enough, developers can utilize the Views API to add their own features. Most of the typical use cases for websites such as generating a list of events, grid of news cards, or page of search results can be accomplished using just Views. The Views module is developed with maximum flexibility and ease of use in mind. Creating Listings with Views (Drupal User Guide).Introduce the Views API and related concepts to Drupal developers who have site building experience with the Views module in Drupal. Learn how to use the Views API in your projectīy the end of this tutorial you'll have a solid understanding of the parts of the Views API and some guidance on which to use for your goals.Discuss the Views API's functional parts such as hooks, plugins, and data types.Get a high level overview of the Views API.By creating these customizations as extensions of Views instead of as stand alone queries, or hard-coded lists, you can empower site administrators to mix and match your customizations with the existing feature set in any way they might need. Through the Views API developers can expose new data to Views, add new configuration options, create new output plugins, field formatters, sort handlers, filter handlers, and more. Views is commonly used in Drupal to create pages, blocks and other types of displays. ![]() The output can be rendered many ways, including as a list, a grid, or an RSS feed. ![]() But it can also aggregate users, blocks, log records, and more. It's typically used to create and output collections of items such as Drupal content entities. The Views module is a query generator and render engine in Drupal core.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |