XML ExplorerInclusionsMarquage par modèle

main [GV2 Notable]

Description Statut Gadget Gadget Version Template Template Version
La version 2 du fichier xml de l'inclusion "main" du gadget Blog spécifique au modèle Notable. Cette inclusion est la section principale du gadget blog. Elle regroupe et organise les éléments principaux du gadget.
Nouveau
Blog
2
Notable
3
<b:includable id='main' var='this'>
  <b:include cond='not data:posts.any' name='noContentPlaceholder'/>

  <b:comment>On the homepage, add a 'recent posts' title before the first standard post.</b:comment>
  <b:if cond='data:view.isMultipleItems'>
    <b:with value='(data:widgets.FeaturedPost filter w => w.sectionId == "page_body").first.postId' var='featuredPostId'>
      <b:if cond='data:featuredPostId and data:view.isHomepage'>
        <div class='feed-message'><data:messages.recentPosts/></div>
      </b:if>

      <b:comment>Cap the total number of ads (widgets and inline ads).</b:comment>
      <b:with value='3' var='maxNumAds'>
      <b:comment>Filter out the featured post, but only on the homepage.</b:comment>
      <b:with value='data:posts filter (post => post.id != data:featuredPostId)' var='posts'>
        <b:include data='this' name='super.main'/>
      </b:with>
      </b:with>
    </b:with>
  <b:else/>
    <b:include data='this' name='super.main'/>
  </b:if>
</b:includable>

Posts les plus consultés de ce blog

DéveloppementsMulti-versions
Populaire
DéveloppementsFichiers XML
Populaire
Base de connaissancesFonctionnalitésContenu
Populaire