Ticket #508 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.