first problem solved i got this error message because of (MOT) instead of (MOTS).
Ok, sorry for the typo..
2006/8/30, {mozna} <info@mozna.be>:
now i'm able to display the date when matching the keyword, but as the
majority of the articles in will infact need the display of the date i hoped
to the other way around: display the date when article desn't match the
keyword.
if possible of course.
I think that this will work :
<BOUCLE_flag_for_date(MOTS){id_article}{id_mot = 13}> </BOUCLE_flag_for_date>
</B_flag_for_date>
<p class="date">[(#DATE|nom_jour) ][(#DATE|affdate)]</p>
<//B_flag_for_date>
The date is displayed when the loop returns nothing (the space char is
important).
and {id_mot!=13} doesn't return any dates at all
It's normal : if you don't have any keyword attached to this article,
the loop on the tags won't return anything.
my 2 cents,
.Gilles
--
stijn
Op 29-aug-06, om 23:52 heeft Gilles Vincent het volgende geschreven:
instead of using the conditional parts of the lops, I suggest you a
better solution : you can use the loop 'MOT' in your specific case :
<B_articles>
<div class="liste-articles">
#ANCRE_PAGINATION
<BOUCLE_articles(ARTICLES) {lang}{id_rubrique}{par num titre,
date}{inverse} {pagination 15} >
<a href="#URL_ARTICLE"><h3
class="titre">[(#TITRE|supprimer_numero)]</h3>
<BOUCLE_flag_for_date(MOT){id_article}{id_mot = 13}>
<p class="date">[(#DATE|nom_jour) ][(#DATE|affdate)]</p>
</BOUCLE_flag_for_date>
[<div class="intro">#LOGO_ARTICLE(#INTRODUCTION)</div>]</a>
<hr/>
</BOUCLE_articles>
[<p class="pagination">(#PAGINATION)</p>]
</div>
</B_articles>
chears
.Gilles
---
2006/8/29, {mozna} <info@mozna.be>:
hi,
i got a question: in the section i display a list of the articles together
with their publishing date but for some articles i don't want the date
displayed. i thought i could do this by creating a keyword 'no date' and
using this boucle
<B_articles>
<div class="liste-articles">
#ANCRE_PAGINATION
<BOUCLE_articles_met_datum(ARTICLES)
{lang}{id_rubrique}{id_mot==13}{par num titre,
date}{inverse} {pagination 15} >
<a href="#URL_ARTICLE"><h3
class="titre">[(#TITRE|supprimer_numero)]</h3>
[<div
class="intro">#LOGO_ARTICLE(#INTRODUCTION)</div>]</a>
<hr/>
</BOUCLE_articles_met_datum>
[<p class="pagination">(#PAGINATION)</p>]
</div>
</B_articles>
<div class="liste-articles">
#ANCRE_PAGINATION
<BOUCLE_articles(ARTICLES) {lang}{id_rubrique}{par num titre,
date}{inverse} {pagination 15} >
<a href="#URL_ARTICLE"><h3
class="titre">[(#TITRE|supprimer_numero)]</h3>
<p class="date">[(#DATE|nom_jour) ][(#DATE|affdate)]</p>
[<div
class="intro">#LOGO_ARTICLE(#INTRODUCTION)</div>]</a>
<hr/>
</BOUCLE_articles>
[<p class="pagination">(#PAGINATION)</p>]
</div>
<//B_articles>
but this displays articles twice when they match the keyword.
does anyone have a solution?
thanx!
stijn
mozna grafische vormgeving
pater lievenslaan 11/6 3010 kessel-lo
016 49 12 00 www.mozna.be
gsm:0484 974 882
_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en
mozna grafische vormgeving
pater lievenslaan 11/6 3010 kessel-lo
016 49 12 00 www.mozna.be
gsm:0484 974 882