Warning: Undefined array key "HTTP_USER_AGENT" in /home/akilia/www/perso/akilia/ecrire/inc/layer.php on line 99

Warning: Undefined array key 1 in /home/akilia/www/perso/akilia/ecrire/inc/layer.php on line 100

Warning: Undefined array key 2 in /home/akilia/www/perso/akilia/ecrire/inc/layer.php on line 101

Warning: Undefined array key 3 in /home/akilia/www/perso/akilia/ecrire/inc/layer.php on line 102
Akilia | Développeur SPIP Toulouse, Occitanie

Précisions sur le critère IN de SPIP

Ce critère est bien expliqué dans http://www.spip.net/fr_article4010.html#xxxx-IN-a-b-c-d------

...mais il faut bien lire entre les lignes pour bien comprendre son fonctionnement.

En fait, le critère IN nécessite un tableau en argument.

Oui on peut écrire id_rubrique IN 2,3 parce que c’est en dur.

Mais

  1. #SET{mes_rubriques, '1,2,3'}
  2. {id_rubrique IN #GET{mes_rubriques}}

ne marchera pas.

Il faudra alors écrire

  1. #SET{mes_rubriques, #LISTE{1,2,3}}
  2. {id_rubrique IN #GET{mes_rubriques}}