exclure un mot clef dans une boucle mot

Bonjour,

Je souhaite exclure un mot clé précis dans une boucle mot
J'ai essayer avec le filtre {titre_mot!== n° du mot} mais sans succès.

Voici la boucle :

<BOUCLE_mots2(MOTS){id_article}{par titre}>
<BOUCLE_articles_mots2(ARTICLES){id_mot}{titre_mot!== 90}{par date}{inverse}{0,10}{exclus}>
<div class="titre2"><a href="#URL_ARTICLE">&#149; #TITRE</a></div>
</BOUCLE_articles_mots2></BOUCLE_mots2>

Merci pour votre aide et bonne journée ensoleillée :slight_smile:

Dan

Dan a écrit :

Bonjour,

Je souhaite exclure un mot clé précis dans une boucle mot
J'ai essayer avec le filtre {titre_mot!== n° du mot} mais sans succès.

Il est souvent plus facile de passer par un {doublons} pour ça

Voici la boucle :

<BOUCLE_mots2(MOTS){id_article}{par titre}>
<BOUCLE_articles_mots2(ARTICLES){id_mot}{titre_mot!== 90}{par date}{inverse}{0,10}{exclus}>
<div class="titre2"><a href="#URL_ARTICLE">&#149; #TITRE</a></div>
</BOUCLE_articles_mots2></BOUCLE_mots2>

Essayes :
<BOUCLE_mots2(MOTS){id_article}{par titre}>
<BOUCLE_exclure_mot(ARTICLES){id_mot}{titre_mot==90}{doublons}></BOUCLE_exclure_mot>

<BOUCLE_articles_mots2(ARTICLES){id_mot}{doublons}{par date}{inverse}{0,10}{exclus}>
<div class="titre2"><a href="#URL_ARTICLE">&#149; #TITRE</a></div>
</BOUCLE_articles_mots2></BOUCLE_mots2>

La BOUCLE_exclure_mot n'affiche rien mais stocke dans doublons le mot à ne pas afficher

Merci pour votre aide et bonne journée ensoleillée :slight_smile:

De même
Eric

Dan a écrit :

Bonjour,

Je souhaite exclure un mot clé précis dans une boucle mot
J'ai essayer avec le filtre {titre_mot!== n° du mot} mais sans succès.

Voici la boucle :

<BOUCLE_mots2(MOTS){id_article}{par titre}>
<BOUCLE_articles_mots2(ARTICLES){id_mot}{titre_mot!== 90}{par date}{inverse}{0,10}{exclus}>
<div class="titre2"><a href="#URL_ARTICLE">&#149; #TITRE</a></div>
</BOUCLE_articles_mots2></BOUCLE_mots2>

Merci pour votre aide et bonne journée ensoleillée :slight_smile:

Dan

Je crois qu'il faut passer par une boucle d'exclusion
Un truc de ce genre peut-être ?
En plus ce serait {id_mot!== 90} non ?

<BOUCLE_exclusion(ARTICLES){id_mot= 90}{doublons}>
</BOUCLE_exclusion>

<BOUCLE_mots2(MOTS){id_article}{par titre}>
<BOUCLE_articles_mots2(ARTICLES){doublons}{par date}{inverse}{0,10}>
<div class="titre2"><a href="#URL_ARTICLE">&#149; #TITRE</a></div>
</BOUCLE_articles_mots2></BOUCLE_mots2>

Bonjour,

Dan a écrit :
(...)

<BOUCLE_mots2(MOTS){id_article}{par titre}>
<BOUCLE_articles_mots2(ARTICLES){id_mot}{titre_mot!== 90}

(...)
cf http://programmer.spip.org/L-Operateur,122
Et puis titre_mot, c'est le 'titre' du mot... il s'appelle vraiment "90"?
Sinon, ce serait plutôt {!id_mot=90}

--
hth
fm

Merci pour toutes ces réponses.
Je vais essayer les différentes solutions.

Dan

Le 23 mai 09 à 14:03, fremoin a écrit :

Bonjour,

Dan a écrit :
(...)

<BOUCLE_mots2(MOTS){id_article}{par titre}>
<BOUCLE_articles_mots2(ARTICLES){id_mot}{titre_mot!== 90}

(...)
cf http://programmer.spip.org/L-Operateur,122
Et puis titre_mot, c'est le 'titre' du mot... il s'appelle vraiment "90"?
Sinon, ce serait plutôt {!id_mot=90}

--
hth
fm

_______________________________________________
liste spip
spip@rezo.net - désabonnement : spip-off@rezo.net

Infos et archives : http://listes.rezo.net/mailman/listinfo/spip

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

irc://irc.freenode.net/spip ou http://embed.mibbit.com/?server=irc.freenode.net&channel=%23spip