Dotclear

Ticket #791 (closed enhancement: fixed)

Opened 16 years ago

Last modified 15 years ago

Critères de tri multiples pour tpl:Entries et autres

Reported by: bruno Owned by: Tomtom33
Priority: normal Milestone: 2.2
Component: module:public Version: 2.1
Severity: normal Keywords:
Cc:

Description

tpl:Entries supporte les attributs sortby suivants : title, selected, author, date, id.

Autant, pour date, id, author ou title, il n'y a a priori pas de problème de valeurs identiques, autant pour selected et author, on ne dispose pas de possibilité de second critère de filtrage (ie, par exemple, lister les billets par auteur puis par date décroissante).

Il serait intéressant dans ces cas-là, de pouvoir indiquer un second critère de tri pour les billets.

Change History

comment:1 Changed 15 years ago by Tomtom33

Il serait surtout bien de pouvoir lister par autre chose. Actuellement c'est la fonction getPosts() qui gère ça en dur. Si l'on passe un sortby="nb_comment" à <tpl:Entries>, cela ne marchera pas. Il faudrait "libérer" ce paramètre

comment:2 Changed 15 years ago by Tomtom33

  • Owner changed from xave to Tomtom33

comment:3 Changed 15 years ago by Tomtom33

(In [2983]) Added support for multiple sorts and additional fields in template tag <tpl:Entries> (see #791)

comment:4 Changed 15 years ago by xave

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

(In [2984]) Merging changes from the Bazar branch. Closes #503, #555, #590, #696, #696, #779, #781, #791, #863, #876, #908, #922, #929, #939, #941, #942. Thanks to DSLS & Tomtom33

comment:5 Changed 15 years ago by Tomtom33

  • Status changed from closed to reopened
  • Resolution fixed deleted

Xave, je réouvre le ticket car je voudrais étendre le comportement aux commentaires, voir catégories ;)

comment:6 Changed 15 years ago by Tomtom33

(In [2985]) Extends multiple sort to <tpl:Comments> tag and adds custom alias (see #791)

comment:7 Changed 15 years ago by xave

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

(In [2999]) Merging changes from the Bazar branch. Closes #354, #381, #532, #667, #689, #791, #938, #940, #945

comment:8 Changed 15 years ago by Tomtom33

(In [3012]) Returned to the correct behavior for comments, addresses #791

comment:9 Changed 15 years ago by Tomtom33

(In [3018]) Set comments order directly in <tpl:Comments>, addresses #791

comment:10 Changed 15 years ago by xave

(In [3019]) Merging changes from the Bazar branch. Closes #451, #556, #644, #777, #791, #835, #857, #905, #909, #937, #947, #950

Note: See TracTickets for help on using tickets.

Sites map