! [spip-dev] Extension du critère {recherche}

The criteria {recherche} has been extended so as to take account of the context.

example :

<BOUCLE_m(MOTS){id_mot}>
  ...
  <BOUCLE_r(ARTICLES){recherche=#TITRE}>
     selects the articles that are the result of a search over the keyword title
  </BOUCLE_r>
</BOUCLE_m>

Note :
we can also use <INCLURE{fond=x}{recherche=NNN}> and also
<BOUCLE_t(ARTICLES){recherche #ENV{something}}>

[But the syntax {recherche=#ENV{something}} isn't implemented yet]

---------- Forwarded message ----------
From: Fil <fil@rezo.net>
Date: 13 mars 2007 22:01
Subject: ! [spip-dev] Extension du critère {recherche}
To: spip-core@rezo.net

Le critere {recherche} est étendu de maniere a ce qu'il cherche dans
le contexte (demande par http://trac.rezo.net/trac/spip/ticket/832);
au passage on peut faire <INCLURE{fond=x}{recherche=NNN}> mais aussi
<BOUCLE_t(ARTICLES){recherche #ENV{autre}}>

(je n'ai pas reussi a faire une syntaxe {recherche=#ENV{autre}} qui
eut ete plus intuitive).

Exemple d'utilisation, dans une page de mot-clé :

<BOUCLE_m(MOTS){id_mot}>
  ...
  <BOUCLE_r(ARTICLES){recherche=#TITRE}>
     sélectionne les articles qui correspondent à une recherche sur le
titre du mot-clé
  </BOUCLE_r>
</BOUCLE_m>

-- Fil
_______________________________________________
liste: http://listes.rezo.net/mailman/listinfo/spip-dev
doc: http://www.spip.net/
dev: http://trac.rezo.net/trac/spip/
irc://irc.freenode.net/spip