Commenting on a rubrique?

I thought that the following boucle would output the comments on all articles in the current rubrique.

<BOUCLE_forums(FORUMS){id_rubrique}>
#TITRE
</BOUCLE_forums>

That seems not to be the case. It returns nothing. It works for articles in an article loop. Is my presumtion wrong or too simple? (I have SPIP 1.9.1 [7502].) Thanks.

I suppose that you want to loop over forums attached to articles
inside a section. You must first loop over the articles and after
eventually get the forum title.

The explaination is simple : you can attach an forum directly to a
section. Your loop enables to find them. But not the forums attached
to the articles..

So you must do something like this :
<BOUCLE_(ARTICLES){id_rubrique=501}>
<BOUCLE_forums(FORUMS){id_article}>
#TITRE
</BOUCLE_forums>
</BOUCLE_>

Tips :
The problem here is that you can't order you result over the forums.
You must use {doublons A} to first store the results in A and
{!doublons A} to get them and order them.

<BOUCLE_(ARTICLES){id_rubrique=501}>
<BOUCLE_forums(FORUMS){id_article}{doublons A}></BOUCLE_forums>
</BOUCLE_>
<BOUCLE_display(FORUMS){!doublons A}{!par date_heure}>
#TITRE
</BOUCLE_display>

You can also go further by using {tampons} : a specific function
developped by P.Andrews and detailled here :
http://permalink.gmane.org/gmane.comp.web.spip.devel/28990

my 2 cents,

.Gilles
---
2007/2/17, barnie.de.los.angeles@myrealbox.com
<barnie.de.los.angeles@myrealbox.com>:

I thought that the following boucle would output the comments on all
articles in the current rubrique.

<BOUCLE_forums(FORUMS){id_rubrique}>
#TITRE
</BOUCLE_forums>

That seems not to be the case. It returns nothing. It works for
articles in an article loop. Is my presumtion wrong or too simple? (I
have SPIP 1.9.1 [7502].) Thanks.
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en