bonjour,
je souhaite avoir un critere alternatif dans une boucle
en clair,
si mon article a une DATE_REDAC, je veux comme critere {par date_redac}
si mon article n'a pas de DATE_REDAC, je veux comme critere {par date}
cas :
si mon article a une date_redac
<BOUCLE_articles_toto(ARTICLES) {id_rubrique} {par date_redac}>
#TITRE
</BOUCLE_articles_toto>
si mon article n'a pas de date_redac
<BOUCLE_articles_toto(ARTICLES) {id_rubrique} {par date}>
#TITRE
</BOUCLE_articles_toto>
Comment faire ?
merci
fabrice.
----------------------------------------------------------------------------
Fabrice CANDAU, Service Informatique
----------------------------------------------------------------------------
Centre National de Recherche Scientifique
Laboratoire de Chimie de Coordination
205 route de Narbonne
31077 Toulouse Cedex 04, FRANCE
----------------------------------------------------------------------------
Fax (CNRS): 33 (0) 5 61 55 30 03
web site : http://www.lcc-toulouse.fr/
----------------------------------------------------------------------------
Bonjour,
{par date_redac, date}
trie d'abord par date redac, puis par date.
Mais c'est pas vraiment ce que tu veux.
En fait, je ne vois pas vraiment comment tu pourrais faire ca. Mais peut `être la date redac vaut date quand elle n'est pas fixé, il faudrait vérifier.
Pierre
CANDAU Fabrice wrote:
bonjour,
je souhaite avoir un critere alternatif dans une boucle
en clair,
si mon article a une DATE_REDAC, je veux comme critere {par date_redac}
si mon article n'a pas de DATE_REDAC, je veux comme critere {par date}
cas :
si mon article a une date_redac
<BOUCLE_articles_toto(ARTICLES) {id_rubrique} {par date_redac}>
#TITRE
</BOUCLE_articles_toto>
si mon article n'a pas de date_redac
<BOUCLE_articles_toto(ARTICLES) {id_rubrique} {par date}>
#TITRE
</BOUCLE_articles_toto>
Comment faire ?
merci
fabrice.
----------------------------------------------------------------------------
Fabrice CANDAU, Service Informatique
----------------------------------------------------------------------------
Centre National de Recherche Scientifique
Laboratoire de Chimie de Coordination
205 route de Narbonne
31077 Toulouse Cedex 04, FRANCE
----------------------------------------------------------------------------
Fax (CNRS): 33 (0) 5 61 55 30 03
web site : http://www.lcc-toulouse.fr/
----------------------------------------------------------------------------