Filter of comparison in SPIP 1.9.2

Hello all,

I had a nice filter that showed me the date of publication of an article only in rubrique 1. It worked perfectly well in SPIP 1.8, but since I have upgraded to 1.9 and reworked the site, the filter doesn't work anymore.

My code for the filter looks as follows:

[(id_rubrique|=={1}|?{(#DATE|affdate)})]

On the frontend, this code is shown as that, without being interpreted, except for (#DATE|affdate) which shows the date correctly.

Anyone has an idea about what's wrong about that?

Or is there another way to show the date only in rubrique 1 and not in the other rubriques / sections ?

Simon
--
-----------------------
Simon Schneebeli
078 619 31 18
----------------------

Hi,

since 1.9, Spip is more strict for the evaluation of it's expressions.

So you should try :

[(id_rubrique|=={1}|?{[(#DATE|affdate)]})]

The difference is only the braces that enable to apply correctly the filter.

If it doesn't work, you can also do this :
#SET{date,[(#DATE|affdate)]}
[(id_rubrique|=={1}|?{#GET{date}})]

.Gilles
---
2007/8/2, Simon Schneebeli <simon.schneebeli@okko.org>:

Hello all,

I had a nice filter that showed me the date of publication of an article
only in rubrique 1. It worked perfectly well in SPIP 1.8, but since I
have upgraded to 1.9 and reworked the site, the filter doesn't work
anymore.

My code for the filter looks as follows:

[(id_rubrique|=={1}|?{(#DATE|affdate)})]

On the frontend, this code is shown as that, without being interpreted,
except for (#DATE|affdate) which shows the date correctly.

Anyone has an idea about what's wrong about that?

Or is there another way to show the date only in rubrique 1 and not in
the other rubriques / sections ?

Simon
--
-----------------------
Simon Schneebeli
078 619 31 18
----------------------
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en