Re: Boucles

klaus++ <[email protected]>
Newsgroups gmane.comp.web.spip.user
Message-ID <[email protected]>
https://www.spip.net/fr_article4334.html#TOTAL_BOUCLE
https://www.spip.net/fr_article4250.html#BOUCLE-AUTEURS-

  <BOUCLE_x(AUTEURS) {tout}>
tous les auteurs sauf ceux mis à la poubelle (statut != 5poubelle) sont 
sélectionnés, qu’ils aient écrit un article ou non, qu’ils soient 
administrateur, administrateur restreint, rédacteur, visiteur ou nouvel 
inscrit.

Exemple:
https://press.daybyday.press/spip.php?page=lesauteursansarticles

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="utf-8">
   <title><BOUCLE_tous(AUTEURS){tout}> </BOUCLE_tous>[Il y a 
(#TOTAL_BOUCLE) auteur(s).]</B_tous></title>
   <link href="style.css" rel="stylesheet" />
</head>
<body>
<h1>Blabla</h1>
<ul>
	<li><BOUCLE_tous2(AUTEURS){tout}> </BOUCLE_tous2>[En tout il y a 
(#TOTAL_BOUCLE) auteur(s),]</B_tous2></li>
	<li><BOUCLE_avec(AUTEURS)> </BOUCLE_avec>[dont (#TOTAL_BOUCLE) ont 
publié des articles.]</B_avec></li>
	<li>bla</li>
	<li>bla</li>
</ul>
</body>
</html>


:-)k++

On 23.03.21 21:30, Stephane Santon wrote:
> Bonjour,
> 
> Je souhaite lister les auteurs et leurs articles respectifs pour tous 
> les auteurs ayant au moins un article publié ou en préparation (en 
> excluant les auteurs sans article).
> 
> De base, je boucle sur les auteurs, je compte les articles et push les 
> auteurs ciblés.
> 
> Puis je reboucle sur les auteurs ciblés pour afficher leurs articles.
> 
> Y a-t-il plus simple ?
> 
> Merci
> 
_______________________________________________
liste spip
[email protected] - désabonnement : envoyer un mail à  [email protected]

Archives : https://www.mail-archive.com/[email protected]/maillist.html

Infos : https://listes.rezo.net/mailman/listinfo/spip

Documentation de SPIP : http://www.spip.net/

Irc : de l'aide à toute heure : http://spip.net/irc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.