Le fichier XML du gadget PopularPosts

Gadget Version 1 Gadget Version 2
Gadget Version 1: PopularPosts Gadget Version 2: PopularPosts
Blogger - Les inclusions du gadget PopularPosts

PopularPosts est un gadget officiel Blogger qui affiche les articles les plus consultés de votre blog.

Cette page vous permet d'explorer le code XML des versions 1 et 2 de ce modèle de gadget, inclusion par inclusion. Vous y trouverez les inclusions par défaut, les inclusions spécifiques à certains thèmes et les réglages enregistrés.



La vue d'ensemble du gadget

Les inclusions du gadget Version 1

<b:widget id='PopularPosts1'
          title='WIDGET_TITLE'
          type='PopularPosts'
          version='1'>

  <!-- SETTINGS -->
  <b:widget-settings></b:widget-settings>

  <!-- DEFAULT VERSION - EXPLICIT AND SUPER -->
  <b:includable id='main'></b:includable>

</b:widget>

Les inclusions du gadget Version 2

<b:widget id='PopularPosts1'
          title='WIDGET_TITLE'
          type='PopularPosts'
          version='2'>

  <!-- SETTINGS -->
  <b:widget-settings></b:widget-settings>

  <!-- DEFAULT VERSION - EXPLICIT AND SUPER -->
  <b:includable id='main' var='this'></b:includable>
  <b:includable id='bylineByName' var='byline'></b:includable>
  <b:includable id='bylineRegion' var='regionItems'></b:includable>
  <b:includable id='commentsLink'></b:includable>
  <b:includable id='emailPostIcon'></b:includable>
  <b:includable id='footerBylines'></b:includable>
  <b:includable id='headerByline'></b:includable>
  <b:includable id='otherSharingButton'></b:includable>
  <b:includable id='postAuthor'></b:includable>
  <b:includable id='postCommentsLink'></b:includable>
  <b:includable id='postJumpLink'></b:includable>
  <b:includable id='postLabels'></b:includable>
  <b:includable id='postLocation'></b:includable>
  <b:includable id='postShareButtons'></b:includable>
  <b:includable id='postTimestamp'></b:includable>
  <b:includable id='sharingButton'></b:includable>
  <b:includable id='sharingButtonContent'></b:includable>
  <b:includable id='sharingButtons'></b:includable>
  <b:includable id='sharingButtonsMenu'></b:includable>
  <b:includable id='sharingPlatformIcon'></b:includable>
  <b:includable id='snippetedPostByline'></b:includable>
  <b:includable id='snippetedPostContent'></b:includable>
  <b:includable id='snippetedPosts'></b:includable>
  <b:includable id='snippetedPostThumbnail'></b:includable>
  <b:includable id='snippetedPostTitle'></b:includable>

  <!-- DEFAULT VERSION - EXPLICIT AND SUPER - Unrelated or deprecated - More info -->
  <b:includable id='blogThisShare'/>
  <b:includable id='commentsLinkIframe'/>
  <b:includable id='facebookShare'/>
  <b:includable id='googlePlusShare'/>
  <b:includable id='linkShare'/>
  <b:includable id='platformShare'/>
  <b:includable id='postReactions'/>

  <!-- MARKUPS - EXPLICIT IN CONTEMPO -->
  <b:includable id='main' var='this'></b:includable>
  <b:includable id='commentsLink'></b:includable>
  <b:includable id='postFooter' var='post'></b:includable>
  <b:includable id='postFooterJumpLink' var='post'></b:includable>
  <b:includable id='postJumpLink'></b:includable>
  <b:includable id='postLabels'></b:includable>
  <b:includable id='postShareButtons'></b:includable>
  <b:includable id='snippetedPostByline'></b:includable>
  <b:includable id='snippetedPostContent'></b:includable>

  <!-- MARKUPS - EXPLICIT IN EMPORIO -->
  <b:includable id='main'></b:includable>
  <b:includable id='commentsLink'></b:includable>
  <b:includable id='itemBody' var='post'></b:includable>
  <b:includable id='snippetedPostContent'></b:includable>
  <b:includable id='snippetedPostThumbnail'></b:includable>

  <!-- MARKUPS - EXPLICIT IN NOTABLE -->
  <b:includable id='main' var='this'></b:includable>
  <b:includable id='commentsLink'></b:includable>
  <b:includable id='footerBylines'></b:includable>
  <b:includable id='headerByline'></b:includable>
  <b:includable id='postFooter' var='post'></b:includable>
  <b:includable id='postJumpLink' var='post'></b:includable>
  <b:includable id='postShareButtons'></b:includable>
  <b:includable id='sharingButtonContent'></b:includable>
  <b:includable id='snippetedPostContent'></b:includable>

  <!-- MARKUPS - EXPLICIT IN SOHO -->
  <b:includable id='main'></b:includable>
  <b:includable id='emailPostIcon'></b:includable>
  <b:includable id='footerBylines'></b:includable>
  <b:includable id='headerByline'></b:includable>
  <b:includable id='postLabels'></b:includable>
  <b:includable id='sharingButtonContent'></b:includable>
  <b:includable id='snippetedPostContent'></b:includable>

</b:widget>


Les réglages enregistrés

Cette section récapitule la liste des réglages enregistrés dans le fichier XML.
Pour chaque réglage, vous trouverez un descriptif, la liste des valeurs autorisées, ainsi que l'emplacement de l'entrée dans le tableau de bord et si disponible la donnée liée au réglage.

En savoir plus sur les balises de réglages

Le balisage

<b:widget-settings>
  <b:widget-setting name='showSnippets'></b:widget-setting>
  <b:widget-setting name='showThumbnails'></b:widget-setting>
  <b:widget-setting name='timeRange'></b:widget-setting>
  <b:widget-setting name='numItemsToShow'></b:widget-setting>
</b:widget-settings>

Le tableau des valeurs

Nom du réglage
Description
Valeur attendue Entrée Data associée
showSnippets
Afficher l'extrait de l'article.
true
false
showSnippets setting showSnippets
postDisplay.showSnippet
showThumbnails
Afficher l'image de l'article.
true
false
showThumbnails setting showThumbnails
postDisplay.showFeaturedImage
timeRange
La période d'analyse du trafic.
ALL_TIME
LAST_YEAR
LAST_MONTH
LAST_WEEK
timeRange setting
numItemsToShow
Nombre d'articles à afficher.
1 2 3 4 5 6 7 8 9 10 numItemsToShow setting


Explorer le contenu des autres gadgets

Spotlight

Populaires cette semaine

Le fichier XML du gadget FeaturedPost