{"id":2036,"date":"2019-07-29T07:00:59","date_gmt":"2019-07-29T07:00:59","guid":{"rendered":"https:\/\/understanddrupal.com\/?p=2036"},"modified":"2022-04-24T05:54:07","modified_gmt":"2022-04-24T05:54:07","slug":"quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils","status":"publish","type":"post","link":"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/","title":{"rendered":"Qu&#8217;est-ce qu&#8217;une vue dans Drupal? Comment fonctionnent-ils?"},"content":{"rendered":"\n<p>In Drupal, a\u00a0<strong>view\u00a0<\/strong>is a listing of information. It can a list of nodes, users, comments, taxonomy terms, files, etc. A view scans your website using any criteria you specify and presents the results in the format of your choice. Example formats include a HTML table, a RSS feed, a PDF document, a CSV document, an interactive map, an image slideshow, or a JSON representation to be used as a REST endpoint. The same content can be presented in multiple formats at the same time. For instance,\u00a0you can\u00a0present a table of user information and on the same page a link to download the data in CSV format.<\/p>\n\n<p>Let\u2019s continue our journey to understand more Drupal concepts. As you might have already noticed, they build on each other. Today, you will learn how\u00a0<a href=\"https:\/\/understanddrupal.com\/node\/1\"><strong>nodes<\/strong>,\u00a0<strong>content types<\/strong><\/a>, and\u00a0<a href=\"https:\/\/understanddrupal.com\/node\/2\"><strong>fields<\/strong><\/a>\u00a0can be used as part of views configurations. Also, you will find examples of\u00a0<a href=\"https:\/\/understanddrupal.com\/node\/3\"><strong>blocks<\/strong><\/a>\u00a0that are created using views.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-understanding-views-terminology\">Understanding Views terminology<\/h2>\n\n<p>There are\u00a0three\u00a0key terms that you need to be aware of: the\u00a0<em>Views<\/em>\u00a0module, the\u00a0<em>Views UI<\/em>\u00a0module, and a\u00a0<em>view<\/em>\u00a0instance. The\u00a0<em>Views<\/em>\u00a0module is the engine of the whole system. Often described as a\u00a0SQL query builder, it allows you to fetch data stored in Drupal\u2019s database, assemble a list of results, and present them in various output format. One of the great benefits it provides is that site builders do not need to know SQL or details about the underlying database structure. Having a basic understanding of Drupal concepts like nodes, content types, and fields suffices in most cases. Using the\u00a0<em>Views UI<\/em>\u00a0module it is possible to create\u00a0<em>view<\/em>\u00a0instances which encapsulate the configuration of what elements to display and how.<\/p>\n\n<p>The\u00a0<em>Views UI<\/em>\u00a0module is the visual user interface of the system. It offers a setup wizard that guides you through the process of creating and configuring a view. Once all the views for a site have been created, the Views UI module can be\u00a0uninstalled\u00a0and the individual view instances will continue working. For one, you gain a bit of performance as there is less code to execute on page loads. But more importantly, editors will not be able to modify the\u00a0views\u00a0configuration using the administration interface in production environments. Site builders will be able to continue making changes in development environments as needed.\u00a0Then, they can push the changes\u00a0as part of their normal configuration deployment strategy.<\/p>\n\n<p>A\u00a0<strong>view<\/strong>\u00a0instance is a set of\u00a0configurations\u00a0that describes how data in Drupal will be collected and presented to the site\u2019s visitor. A single view can have multiple\u00a0<strong>displays<\/strong>. Possible view displays include a\u00a0<em>page<\/em>\u00a0available\u00a0under certain\u00a0URL\u00a0<em>path<\/em>, a\u00a0<em>block<\/em>\u00a0to be placed in a\u00a0<em>theme region<\/em>, or a\u00a0<em>feed<\/em>\u00a0to be exported in\u00a0<em>RSS<\/em>\u00a0or\u00a0<em>OPML<\/em>\u00a0formats. Each type of display will allow you to specify\u00a0a presentation\u00a0<strong>format<\/strong>. Possible values vary per\u00a0<em>display<\/em>\u00a0type. In the case of a\u00a0<em>page<\/em>\u00a0display, valid alternatives include\u00a0<em>unformatted lists<\/em>,\u00a0<em>tables<\/em>,\u00a0<em>HTML lists<\/em>, and\u00a0<em>grids<\/em>. Display and output formats are provided by modules. As you enable more core modules or install new contributed modules, you might get more options. Visit this page for a\u00a0<a href=\"https:\/\/www.drupal.org\/documentation\/modules\/views\/add-ons\">list of modules that extends Views functionality<\/a>.<\/p>\n\n<p><em>Tip:<\/em>\u00a0The Views UI contains some inconsistencies that might confuse you if you are not familiar with it. One is that it uses the word\u00a0<em>\u201cContent\u201d<\/em>\u00a0to refer to\u00a0<em>nodes<\/em>, like in the first page of the views creation wizard. Another is\u00a0that,\u00a0contrary to the \u201cURL alias\u201d setting in the node edit page, the\u00a0<em>path<\/em>\u00a0setting inside a view does not produce a validation error if it does not start with a \/ (slash) sign. These and other subtle differences exist, but they are negligible compared to all the benefits we get from using the system.<\/p>\n\n<p><em>Technical note:<\/em>\u00a0It is possible to see the SQL query that Drupal executes to fetch the list of results. Go to the \u201cViews settings\u201d page under \/admin\/structure\/views\/settings and check the \u201cShow the SQL query\u201d option of the \u201cLive preview settings.\u201d Then you can go to any view and upon clicking the \u201cUpdate preview\u201d button you will see the SQL query issued by Drupal. As an example have a look at the view that shows the frontpage configured under \/admin\/structure\/views\/view\/frontpage Note that table names are enclosed by curly brackets (<strong>{}<\/strong>). This is because Drupal allows you to define\u00a0<a href=\"https:\/\/www.drupal.org\/node\/2622\">table prefixes<\/a>\u00a0to share the database with other applications. Although\u00a0<a href=\"https:\/\/www.drupal.org\/project\/drupal\/issues\/2551549\">they is rarely useful<\/a>, it is possible to configure them. To accommodate for this, the Views API uses curly brackets to indicate that table names need to processed to prepend table prefixes when they are set.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-how-do-drupal-views-work\">How do Drupal views work?<\/h2>\n\n<p>This section assumes the Views UI module is enabled. In order to create a view you visit the \u201cAdd view\u201d page under \/admin\/structure\/views\/add. For \u201cView settings &gt; Show\u201d you need to specify which type of listing you want to create: content (nodes), users, comments, files, etc. You can also indicate how you want to present the results: a page with an optional RSS feed or a block. After this initial form you are taken to the complete setup interface where the configuration options are virtually endless. The initial selection for what to show (content, users, etc.) cannot be changed once set because it serves as the\u00a0base table\u00a0to collect data from. Except for that\u00a0and the\u00a0<em>machine name<\/em>\u00a0of the view, every setting can be changed at any point using this interface. Instead of creating a view from scratch, let\u2019s review some examples that come with the standard installation profile in Drupal. This will allow us to better understand the Views UI interface.<\/p>\n\n<p>The\u00a0<em>frontpage<\/em>\u00a0view is configured under \/admin\/structure\/views\/view\/frontpage. It comes with two\u00a0<strong>displays<\/strong>:\u00a0<em>Page<\/em>\u00a0and\u00a0<em>Feed<\/em>. The\u00a0<em>Page<\/em>\u00a0will appear under the \/node\u00a0<strong>path<\/strong>\u00a0with a\u00a0<strong>format<\/strong>\u00a0of an\u00a0<em>unformatted list<\/em>\u00a0<strong>show<\/strong>ing\u00a0<em>Content (nodes)<\/em>\u00a0using the\u00a0<em>Teaser<\/em>\u00a0<strong>view mode<\/strong>. Because we are showing a view node, there are no individual\u00a0<strong>fields<\/strong>\u00a0to present.\u00a0Using view modes is recommended over rendering fields. One reason is that it benefits from caching at the entity level.\u00a0The\u00a0<strong>filter criteria<\/strong>\u00a0section specifies the conditions that must be met by a node to appear in the final list of results. In this case, the node needs to be\u00a0<em>published<\/em>\u00a0and\u00a0<em>promoted to the frontpage<\/em>. Note that there is no filter criteria for content type. Yet, in a default Drupal installation all\u00a0<em>articles<\/em>\u00a0appear in the frontpage and no\u00a0<em>basic pages<\/em>\u00a0appear there. The reason is because, by default, articles are set to be promoted to the frontpage while basic pages are not. This setting can be changed on a node basis and defaults can be set on a content type basis.<\/p>\n\n<p>Back the the Views UI\u00a0for the frontpage view, in the\u00a0<strong>sort criteria<\/strong>\u00a0section we see two values. The first will put any node marked as\u00a0<em>sticky<\/em>\u00a0at the top of the list. The second will order the nodes based on their\u00a0<em>creation date<\/em>. When there is more than one sort criteria, the order in which they are defined is important. Any criteria that appears first in the list will take precedence over subsequent ones. This view display is used by Drupal\u2019s default frontpage. Note that its path \/node is set as the frontpage under \/admin\/config\/system\/site-information in a standard installation. The second display of the view is a\u00a0<em>Feed<\/em>\u00a0whose configuration is mostly the same as the\u00a0<em>Page<\/em>\u00a0display. The relevant differences are the path, format, and view mode\u00a0setting: \/rss.xml, RSS Feed format, and RSS view mode, respectively.<\/p>\n\n<p>Sometimes, we want to create a view to present a list of elements, but we want the end user to further filter down that list or change the way it is sorted. It is possible to do this using\u00a0<strong>exposed filters<\/strong>\u00a0and\u00a0<strong>exports sorts<\/strong>. A good example is the administration interface for all the nodes in Drupal that lives under \/admin\/content.\u00a0The configuration for this view is available at \/admin\/structure\/views\/view\/content.\u00a0This view presents seven\u00a0<strong>fields<\/strong>\u00a0in table format:\u00a0node operations bulk form, title, content type, author, publication status, updated timestamp, and operations.\u00a0In the\u00a0<strong>filter criteria<\/strong>\u00a0section, four elements have been\u00a0<strong>exposed<\/strong>\u00a0allowing the content editor to filter the list based on node title, content type, publication status, and language. This view does not offer any\u00a0<strong>exposed sort criteria<\/strong>, but\u00a0its\u00a0functionality and presentation is similar to that of exposed filters. However, because it uses a table format, some of the headers were made clickable allowing changing the order ascending or descending for that particular field. This is yet another way of allowing the end user override how the results are presented by default.<\/p>\n\n<p>It is important to note four things in the previous example. First, a\u00a0<em>view field<\/em>\u00a0is not always\u00a0a\u00a0<em>field attached to a content type<\/em>, like the one providing the \u201coperations\u201d column in the table. The reuse of the word \u201c<em>field<\/em>\u201d in this context is a bit unfortunate. Second, the list of fields in the\u00a0<strong>fields<\/strong>\u00a0section and the\u00a0<strong>filter criteria<\/strong>\u00a0section does not have to be the same. Third, the widget (text input, drop down, etc.) that will allow the user to filter down the list depends on the type of field that is being processed. Fourth, when the user filters down the list, the original presentation format is kept, a table with seven columns in this case.<\/p>\n\n<p><em>Tip:<\/em>\u00a0Drupal core comes with at least 14 default views. Studying them is a good way to learn more about how the Views system works. For the curious reader, have a look at the \u201cWho&#8217;s new\u201d and the \u201cWho&#8217;s online block\u201d views for examples of\u00a0<strong>block displays<\/strong>.\u00a0Both\u00a0are available at \/admin\/structure\/views. If you want to play with them without having to setup a local development environment, I recommend using\u00a0<a href=\"https:\/\/simplytest.me\/\">https:\/\/simplytest.me\/<\/a>\u00a0In that website you can test\u00a0<a href=\"https:\/\/www.drupal.org\/project\/drupal\">Drupal core<\/a>\u00a0and contributed\u00a0<a href=\"https:\/\/www.drupal.org\/project\/project_module\">modules<\/a>,\u00a0<a href=\"https:\/\/www.drupal.org\/project\/project_theme\">themes<\/a>, and\u00a0<a href=\"https:\/\/www.drupal.org\/project\/project_distribution\">distributions<\/a>\u00a0within minutes.<\/p>\n\n<p><em>Technical note:<\/em>\u00a0Being a SQL query builder, some elements of the Views UI can be mapped to SQL concepts. The\u00a0<strong>fields<\/strong>\u00a0section maps to table columns to include in the\u00a0<em>SELECT<\/em>\u00a0statement.\u00a0<strong>Relationships<\/strong>\u00a0add\u00a0<em>JOIN<\/em>\u00a0clauses to the query. The\u00a0<strong>filter criteria<\/strong>\u00a0and\u00a0<strong>contextual filters<\/strong>\u00a0sections map to the\u00a0<em>WHERE<\/em>\u00a0clause. The\u00a0<strong>sort criteria<\/strong>\u00a0section maps to\u00a0<em>ORDER BY<\/em>\u00a0clause. The\u00a0<strong>pager<\/strong>\u00a0adds\u00a0<em>LIMIT<\/em>\u00a0and\u00a0<em>OFFSET<\/em>\u00a0clauses. Using\u00a0<strong>aggregation<\/strong>\u00a0adds a\u00a0<em>GROUP BY<\/em>\u00a0clause to the query. And the \u201cDistinct\u201d\u00a0<strong>query setting<\/strong>\u00a0adds a\u00a0<em>DISTINCT<\/em>\u00a0clause. Be aware that interface elements do not map one to one to SQL query elements. The Views UI strives to hide the complexity of the underlying data structure from site builders. Although not required, understanding this mapping is useful, especially when\u00a0the\u00a0view configuration does not yield the expected result.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-dynamic-results\">Dynamic results<\/h2>\n\n<p>Views is one of the many systems that allow you to create dynamic sites with Drupal. These sites that, once configured,\u00a0update their content automatically\u00a0as time passes. For example, if you have a website that contains information about events, you might want to have a page that lists only future events. To accomplish this you can create an \u201cEvent\u201d content type that has a \u201cdate\u201d field. Then you create a view with a filter criteria that uses\u00a0this\u00a0field so that only events whose date is \u201ctoday\u201d or greater appear on the final list. Note that it is possible to use date offsets as filter values. Once all the configuration is in place, content editors only need to add nodes and set a value for the \u201cdate\u201d field. When Drupal shows the page for this view, it will respect the original configuration and only show results that match the condition\u00a0<em>from today onwards<\/em>. This illustrates the need to store node data in separate fields. This way you can use them as fields (to show), filter criteria, sort criteria, and more. If you had this information inside the \u201cbody\u201d field, it would be practically impossible to use it for these purposes.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-views-with-only-one-result\">Views\u00a0with only one result<\/h2>\n\n<p>We said that views are used to create a listing of elements. When talking about lists, it is common to think of results with more than one element, usually many. But there are some cases where creating views of one element make\u00a0sense: when\u00a0you want to show \u201cthe most of\u201d, \u201cthe best of\u201d, or other superlatives. For example, the most visited article in the last month, the most attended event last year, the most recent product added to the store, etc. Another use case for a view of one element is when you want to show something random. To accomplish this, you add a single\u00a0sort criteria\u00a0aptly named \u201cRandom.\u201d\u00a0In all of these cases, the pager would be configured to show only one element.<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-other-use-cases\">Other use cases<\/h2>\n\n<p>The use cases for Views are endless. Some will require the use of\u00a0<a href=\"https:\/\/www.drupal.org\/project\/project_module?f%5B0%5D=&amp;f%5B1%5D=&amp;f%5B2%5D=im_vid_3%3A89&amp;f%5B3%5D=&amp;f%5B4%5D=sm_field_project_type%3Afull&amp;f%5B5%5D=&amp;f%5B6%5D=&amp;text=&amp;solrsort=iss_project_release_usage+desc&amp;op=Search\">contributed modules<\/a>, but it is possible to build many things with core Views functionality. Here is a very short list of things that you can built with Views:<\/p>\n\n<ul><li>An interactive map like the one at\u00a0<a href=\"https:\/\/www.drupical.com\/\">Drupical.com<\/a>.<\/li><li>A JSON or CSV representation of some content that you want to migrate from Drupal 7 to Drupal 8 using the\u00a0<a href=\"https:\/\/www.drupal.org\/docs\/8\/api\/migrate-api\">Migrate API<\/a>.<\/li><li>A search page with exposed filters and facets using the\u00a0<a href=\"https:\/\/www.drupal.org\/docs\/8\/modules\/search-api\">Search API<\/a>.<\/li><li>An audio\u00a0or video\u00a0player with a playlist feature.<\/li><li>An (image) carousel, although that is very likely a\u00a0<a href=\"http:\/\/shouldiuseacarousel.com\/\">terrible idea<\/a>.<\/li><\/ul>\n\n<h2 class=\"wp-block-heading\" id=\"h-the-power-is-yours\">The power is yours<\/h2>\n\n<p>Views is an extremely powerful system and a key differentiator of Drupal compared to other content management systems (CMSs) and frameworks. We have only scratched the surface of what is possible in this blog post. Core Views has many other concepts like contextual filters and relationships that were not explained. Using contributed modules or custom code you can flex Views to match specific needs.\u00a0For example, you can extend Views using plugins to create your own fields, filter criteria, sort criteria, etc. You can also use hooks to alter the SQL query itself. Additionally, you can rewrite results and theme the output.\u00a0With so many moving parts, it might be daunting to learn Views. My recommendation is to learn one concept at a time and tinker with existing views, like the ones that come with Drupal core, to learn how they work.<\/p>\n\n<p>About 8 years ago,\u00a0<a href=\"https:\/\/www.drupal.org\/u\/itangalo\">Johan Falk<\/a>\u00a0created\u00a0<a href=\"https:\/\/digitalist.se\/blogg\/taming-beast-learn-views-wunderkraut\">one of the best resources to learn Views<\/a>\u00a0I have seen so far. Similarly to the Drupal concepts we have been learning so far, Views concepts have not changed significantly since the release of that video series. Kudos to Johan for creating many valuable Drupal tutorials back in the day. Maybe some time in the future I will be able to produce a similar\/updated Views tutorial here at UnderstandDrupal.com Drop me a line if you would be interested in sponsoring such endeavor.<\/p>\n\n<p>How familiar were you with Drupal Views? Did you know how different elements of the Views UI map to SQL query clauses? What are some concepts that you find hard to understand? What contributed modules do you know that extend Views functionality?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dans Drupal, une\u00a0vue\u00a0est une liste d&#8217;informations. Il peut contenir une liste de n\u0153uds, d&#8217;utilisateurs, de commentaires, de termes de taxonomie, de fichiers, etc. Une vue scanne votre site Web \u00e0 l&#8217;aide de tous les crit\u00e8res que vous sp\u00e9cifiez et pr\u00e9sente les r\u00e9sultats dans le format de votre choix. Exemples de formats : un tableau HTML, un flux RSS, un document PDF, un document CSV, une carte interactive, un diaporama d&#8217;images ou une repr\u00e9sentation JSON \u00e0 utiliser comme point final REST. Le m\u00eame contenu peut \u00eatre pr\u00e9sent\u00e9 dans plusieurs formats en m\u00eame temps. Par exemple, vous pouvez pr\u00e9senter un tableau d&#8217;informations utilisateur et sur la m\u00eame page un lien pour t\u00e9l\u00e9charger les donn\u00e9es au format CSV.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[23],"tags":[48,49,56],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Qu&#039;est-ce qu&#039;une vue dans Drupal? Comment fonctionnent-ils? - Understand Drupal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Qu&#039;est-ce qu&#039;une vue dans Drupal? Comment fonctionnent-ils? - Understand Drupal\" \/>\n<meta property=\"og:description\" content=\"Dans Drupal, une\u00a0vue\u00a0est une liste d&#039;informations. Il peut contenir une liste de n\u0153uds, d&#039;utilisateurs, de commentaires, de termes de taxonomie, de fichiers, etc. Une vue scanne votre site Web \u00e0 l&#039;aide de tous les crit\u00e8res que vous sp\u00e9cifiez et pr\u00e9sente les r\u00e9sultats dans le format de votre choix. Exemples de formats : un tableau HTML, un flux RSS, un document PDF, un document CSV, une carte interactive, un diaporama d&#039;images ou une repr\u00e9sentation JSON \u00e0 utiliser comme point final REST. Le m\u00eame contenu peut \u00eatre pr\u00e9sent\u00e9 dans plusieurs formats en m\u00eame temps. Par exemple, vous pouvez pr\u00e9senter un tableau d&#039;informations utilisateur et sur la m\u00eame page un lien pour t\u00e9l\u00e9charger les donn\u00e9es au format CSV.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/\" \/>\n<meta property=\"og:site_name\" content=\"Understand Drupal\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-29T07:00:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-24T05:54:07+00:00\" \/>\n<meta name=\"author\" content=\"Mauricio Dinarte\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mauricio Dinarte\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/\"},\"author\":{\"name\":\"Mauricio Dinarte\",\"@id\":\"https:\/\/understanddrupal.com\/#\/schema\/person\/73fa828d2b498d144def1204a114b7d3\"},\"headline\":\"Qu&#8217;est-ce qu&#8217;une vue dans Drupal? Comment fonctionnent-ils?\",\"datePublished\":\"2019-07-29T07:00:59+00:00\",\"dateModified\":\"2022-04-24T05:54:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/\"},\"wordCount\":2544,\"publisher\":{\"@id\":\"https:\/\/understanddrupal.com\/#organization\"},\"keywords\":[\"Des concepts basiques\",\"Plan\u00e8te Drupal\",\"vues\"],\"articleSection\":[\"Non classifi\u00e9(e)\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/\",\"url\":\"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/\",\"name\":\"Qu'est-ce qu'une vue dans Drupal? Comment fonctionnent-ils? - Understand Drupal\",\"isPartOf\":{\"@id\":\"https:\/\/understanddrupal.com\/#website\"},\"datePublished\":\"2019-07-29T07:00:59+00:00\",\"dateModified\":\"2022-04-24T05:54:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/understanddrupal.com\/fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Qu&#8217;est-ce qu&#8217;une vue dans Drupal? Comment fonctionnent-ils?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/understanddrupal.com\/#website\",\"url\":\"https:\/\/understanddrupal.com\/\",\"name\":\"Understand Drupal\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/understanddrupal.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/understanddrupal.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/understanddrupal.com\/#organization\",\"name\":\"Understand Drupal\",\"url\":\"https:\/\/understanddrupal.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/understanddrupal.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/understanddrupal.com\/wp-content\/uploads\/2021\/12\/understanddrupal_logo_white.png\",\"contentUrl\":\"https:\/\/understanddrupal.com\/wp-content\/uploads\/2021\/12\/understanddrupal_logo_white.png\",\"width\":100,\"height\":73,\"caption\":\"Understand Drupal\"},\"image\":{\"@id\":\"https:\/\/understanddrupal.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/understanddrupal.com\/#\/schema\/person\/73fa828d2b498d144def1204a114b7d3\",\"name\":\"Mauricio Dinarte\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/understanddrupal.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/20c842c5c006728abe93e6122524f5b7?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/20c842c5c006728abe93e6122524f5b7?s=96&d=blank&r=g\",\"caption\":\"Mauricio Dinarte\"},\"url\":\"https:\/\/understanddrupal.com\/fr\/blog\/author\/dinarcon\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Qu'est-ce qu'une vue dans Drupal? Comment fonctionnent-ils? - Understand Drupal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/","og_locale":"fr_FR","og_type":"article","og_title":"Qu'est-ce qu'une vue dans Drupal? Comment fonctionnent-ils? - Understand Drupal","og_description":"Dans Drupal, une\u00a0vue\u00a0est une liste d'informations. Il peut contenir une liste de n\u0153uds, d'utilisateurs, de commentaires, de termes de taxonomie, de fichiers, etc. Une vue scanne votre site Web \u00e0 l'aide de tous les crit\u00e8res que vous sp\u00e9cifiez et pr\u00e9sente les r\u00e9sultats dans le format de votre choix. Exemples de formats : un tableau HTML, un flux RSS, un document PDF, un document CSV, une carte interactive, un diaporama d'images ou une repr\u00e9sentation JSON \u00e0 utiliser comme point final REST. Le m\u00eame contenu peut \u00eatre pr\u00e9sent\u00e9 dans plusieurs formats en m\u00eame temps. Par exemple, vous pouvez pr\u00e9senter un tableau d'informations utilisateur et sur la m\u00eame page un lien pour t\u00e9l\u00e9charger les donn\u00e9es au format CSV.","og_url":"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/","og_site_name":"Understand Drupal","article_published_time":"2019-07-29T07:00:59+00:00","article_modified_time":"2022-04-24T05:54:07+00:00","author":"Mauricio Dinarte","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mauricio Dinarte","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/#article","isPartOf":{"@id":"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/"},"author":{"name":"Mauricio Dinarte","@id":"https:\/\/understanddrupal.com\/#\/schema\/person\/73fa828d2b498d144def1204a114b7d3"},"headline":"Qu&#8217;est-ce qu&#8217;une vue dans Drupal? Comment fonctionnent-ils?","datePublished":"2019-07-29T07:00:59+00:00","dateModified":"2022-04-24T05:54:07+00:00","mainEntityOfPage":{"@id":"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/"},"wordCount":2544,"publisher":{"@id":"https:\/\/understanddrupal.com\/#organization"},"keywords":["Des concepts basiques","Plan\u00e8te Drupal","vues"],"articleSection":["Non classifi\u00e9(e)"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/","url":"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/","name":"Qu'est-ce qu'une vue dans Drupal? Comment fonctionnent-ils? - Understand Drupal","isPartOf":{"@id":"https:\/\/understanddrupal.com\/#website"},"datePublished":"2019-07-29T07:00:59+00:00","dateModified":"2022-04-24T05:54:07+00:00","breadcrumb":{"@id":"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/understanddrupal.com\/fr\/blog\/quest-ce-quune-vue-dans-drupal-comment-fonctionnent-ils\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/understanddrupal.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Qu&#8217;est-ce qu&#8217;une vue dans Drupal? Comment fonctionnent-ils?"}]},{"@type":"WebSite","@id":"https:\/\/understanddrupal.com\/#website","url":"https:\/\/understanddrupal.com\/","name":"Understand Drupal","description":"","publisher":{"@id":"https:\/\/understanddrupal.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/understanddrupal.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/understanddrupal.com\/#organization","name":"Understand Drupal","url":"https:\/\/understanddrupal.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/understanddrupal.com\/#\/schema\/logo\/image\/","url":"https:\/\/understanddrupal.com\/wp-content\/uploads\/2021\/12\/understanddrupal_logo_white.png","contentUrl":"https:\/\/understanddrupal.com\/wp-content\/uploads\/2021\/12\/understanddrupal_logo_white.png","width":100,"height":73,"caption":"Understand Drupal"},"image":{"@id":"https:\/\/understanddrupal.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/understanddrupal.com\/#\/schema\/person\/73fa828d2b498d144def1204a114b7d3","name":"Mauricio Dinarte","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/understanddrupal.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/20c842c5c006728abe93e6122524f5b7?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/20c842c5c006728abe93e6122524f5b7?s=96&d=blank&r=g","caption":"Mauricio Dinarte"},"url":"https:\/\/understanddrupal.com\/fr\/blog\/author\/dinarcon\/"}]}},"_links":{"self":[{"href":"https:\/\/understanddrupal.com\/fr\/wp-json\/wp\/v2\/posts\/2036"}],"collection":[{"href":"https:\/\/understanddrupal.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/understanddrupal.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/understanddrupal.com\/fr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/understanddrupal.com\/fr\/wp-json\/wp\/v2\/comments?post=2036"}],"version-history":[{"count":1,"href":"https:\/\/understanddrupal.com\/fr\/wp-json\/wp\/v2\/posts\/2036\/revisions"}],"predecessor-version":[{"id":5347,"href":"https:\/\/understanddrupal.com\/fr\/wp-json\/wp\/v2\/posts\/2036\/revisions\/5347"}],"wp:attachment":[{"href":"https:\/\/understanddrupal.com\/fr\/wp-json\/wp\/v2\/media?parent=2036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/understanddrupal.com\/fr\/wp-json\/wp\/v2\/categories?post=2036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/understanddrupal.com\/fr\/wp-json\/wp\/v2\/tags?post=2036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}