Dotclear

Ticket #508 (closed defect: fixed)

Opened 17 years ago

Last modified 17 years ago

PaginationIf start="" est inopérant si le nombre de billets est inférieur à celui défini dans la config du blog

Reported by: kozlika Owned by: franck
Priority: normal Milestone: 2.2
Component: module:core Version: 2.1
Severity: normal Keywords:
Cc:

Description

Le test PaginationIf? start="" ne se fait pas si le nombre de billets est inférieur à celui défini dans la config du blog.

Exemple : Version Dotclear : 2.1.1-r2560. Nombre de billets dans le blog : 3.

Soit dans home.html le code suivant :

<tpl:Entries no-content="1">
  <tpl:EntriesHeader>
    <tpl:Pagination>
      <tpl:PaginationIf start="1">
        {{tpl:include src="_une.html"}}
      </tpl:PaginationIf>
      <tpl:PaginationIf start="0">
        {{tpl:include src="_news.html"}}
      </tpl:PaginationIf>
    </tpl:Pagination>
  </tpl:EntriesHeader>
</tpl:Entries>

Avec nombre de billets par page dans la config : 10, ni l'un ni l'autre fichier ne sont inclus.

Avec nombre de billets par page dans la config : 2, le fichier _une.html est bien inclus à l'accueil et _news.html en page 2.

Change History

comment:1 Changed 17 years ago by franck

  • Owner changed from olivier to franck

comment:2 Changed 17 years ago by franck

  • Status changed from new to closed
  • Resolution set to fixed

(In [2570]) Add no_context attribute to tpl:Pagination, close #508. Fix tpl:PaginationIf end="1" which return false if only one page

Note: See TracTickets for help on using tickets.

Sites map