Affichage intempestif d'un petit "1"

Bonsoir,
sur ma page d'accueil http://muzzix.info j'ai un petit "1" qui s'affiche (à gauche de l’agenda).
Je soupçonne ce « 1 » d’être la réponse à un test conditionnel :

[(#ENV{event}|non) <INCLURE{fond=inclure/agendageneral,ajax,env}/>]
[(#ENV{event}|=={6}) <INCLURE{fond=inclure/agendageneral,ajax,env}/>]
[(#ENV{event}|=={12}) <INCLURE{fond=inclure/agendacult,ajax,env}/>]
[(#ENV{event}|=={13}) <INCLURE{fond=inclure/agendamis,ajax,env}/>]

Apparemment, les inclusions sont bien appelées et tout… Mais pourquoi ce « 1 » ? Quelqu’un y comprend quelque chose ?


martin

Bonsoir,

Le 6 févr. 2017 à 21:43, Ybbet Spip <teddy.spip@gmail.com> a écrit :

En fait, c'est "normal". Les tests que tu fais disent que "oui" (cf. true ou '1') #ENV{event} est égale à la valeur comparée.
Donc, pour ne plus avoir ce '1', il faut appliquer le filtre |oui après ton test
Soit par exemple [(#ENV{event}|=={6}|oui)<INCLURE{fond=.....}/>]

Oh merci ! Je n’aurais jamais trouvé tout seul. En plus c’est typiquement le genre de question que je vais reposer dans 6 mois… Pardonnez-moi d’avance :slight_smile:

Bonsoir

à priori, tu avances car ce "1" n'apparait plus que pour l'event 13

Le 06/02/2017 à 21:35, moustiquaire@free.fr a écrit :

Bonsoir,
sur ma page d'accueil http://muzzix.info j'ai un petit "1" qui s'affiche (à gauche de l’agenda).
Je soupçonne ce « 1 » d’être la réponse à un test conditionnel :

[(#ENV{event}|non) <INCLURE{fond=inclure/agendageneral,ajax,env}/>]
[(#ENV{event}|=={6}) <INCLURE{fond=inclure/agendageneral,ajax,env}/>]
[(#ENV{event}|=={12}) <INCLURE{fond=inclure/agendacult,ajax,env}/>]
[(#ENV{event}|=={13}) <INCLURE{fond=inclure/agendamis,ajax,env}/>]

Apparemment, les inclusions sont bien appelées et tout… Mais pourquoi ce « 1 » ? Quelqu’un y comprend quelque chose ?


martin
_______________________________________________
liste spip
spip@rezo.net - désabonnement : envoyer un mail à spip-off@rezo.net

Archives : https://www.mail-archive.com/spip@rezo.net/maillist.html

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

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

Irc : de l'aide à toute heure : http://spip.net/irc