Dotclear

Ticket #989 (closed idea: fixed)

Opened 15 years ago

Last modified 12 years ago

[posts] Filtrer les billets disposant d'une pièce jointe

Reported by: brol Owned by: Evelf
Priority: normal Milestone: 2.6
Component: module:formfilters Version:
Severity: normal Keywords:
Cc:

Description

Hello,
Il serait pratique de pouvoir filtrer les billets (depuis la page /admin/posts.php) selon qu'ils disposent de pièce(s) jointe(s) ou pas, comme cela est possible avec l'état sélectionné/non sélectionné.
Ou pas.

Change History

comment:1 Changed 15 years ago by xave

  • Owner changed from xave to team
  • Component changed from module:core to module:ergo
  • Milestone changed from 2.2 to 2.3

comment:2 Changed 15 years ago by kozlika

  • Owner changed from team to Ergaut
  • Priority changed from low to normal
  • Version 2.1 deleted
  • Component changed from module:ergo to refonte:ergo
  • Milestone changed from 2.3 to Refonte admin

comment:3 Changed 15 years ago by franck

En fait on pourrait même imaginer d'avoir un système d'extension des filtres (pour les billets, commentaires, …) par plugin

comment:4 in reply to: ↑ description Changed 15 years ago by Ergaut

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

Replying to brol:

Hello,
Il serait pratique de pouvoir filtrer les billets (depuis la page /admin/posts.php) selon qu'ils disposent de pièce(s) jointe(s) ou pas, comme cela est possible avec l'état sélectionné/non sélectionné.
Ou pas.

En effet oui cela semble intéressant. Je l'ajoute dans la doc fonctionnelle en question

comment:5 Changed 15 years ago by kozlika

  • Summary changed from Filtrer les billets disposant d'une pièce jointe to [posts] Filtrer les billets disposant d'une pièce jointe

comment:6 Changed 14 years ago by bruno

  • Status changed from closed to reopened
  • Resolution fixed deleted

Ticket fermé par erreur ?

comment:7 Changed 13 years ago by franck

Est-ce qu'un plugin (attachments en l'occurence) peut ajouter des critères pour la gestion des filtres ?

comment:8 Changed 13 years ago by franck

  • Milestone changed from Refonte admin to 2.5

comment:9 Changed 13 years ago by franck

  • Milestone changed from 2.5 to Refonte admin

comment:10 Changed 12 years ago by franck

  • Milestone changed from Refonte admin to 2.6

comment:11 Changed 12 years ago by franck

  • Component changed from refonte:ergo to module:formfilters

Le plugin attachement devra pouvoir ajouter son filtre et le gérer (behaviours)

comment:12 Changed 12 years ago by JcDenis

  • Owner changed from Ergaut to JcDenis
  • Status changed from reopened to new

comment:13 Changed 12 years ago by franck

  • Owner changed from JcDenis to Evelf

comment:14 Changed 12 years ago by franck

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

see revision [2310]

comment:15 Changed 12 years ago by Dsls

(In [d01c85eaa37d]) Refined attachment filter to "attachments" only, added link_type selection in dcBlog::getPosts, see #989

comment:16 Changed 12 years ago by franck

  • Status changed from closed to reopened
  • Resolution fixed deleted

Pour le filtre des billets sans pièces jointes, pas de souci.

Pour le filtre des billets avec pièces jointes, getPosts() appelée pour récupérer le compteur retourne une valeur erronée : le nombre d'annexes et pas le nombre de billets, du coup la pagination sort des clous s'il y a plus d'une annexe dans au moins un des billets.

D'autre part, avec PostgreSQL, une erreur survient dans les deux cas.

comment:17 Changed 12 years ago by franck <carnet.franck.paul@…>

(In [b3620dcad205]) Fix posts counting, as least for mysql, in getPosts(), addresses #989

comment:18 Changed 12 years ago by franck <carnet.franck.paul@…>

(In [f8620977a163]) Revamp query for PostgreSQL in order to use DISTNICT ON rather than GROUP BY, in getPosts(), addresses #989

comment:19 Changed 12 years ago by franck

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.

Sites map