hi colleagues,

I have to sort news by date, the news within the last 30 days are current
news and older announcements should be listed under PAST NEWS.

I exchanged the 'score' sorting with 'calendar', does anybody know how it
may support me with sorting the articles?

any help is welcomed,

gregor

1: <h1>Latest News</h1> 
2: <?php 
3: $topic = 11; 
4: $article = mgd_list_topic_articles($topic, "calendar"); 
5: if ($article->N == 0) { 
6:   echo "<h3>No articles in this topic, sorry.</h3>"; 
7: } else { 
8:   echo "<ul>\n"; 
9:   while($article->fetch() ) { 
10:      ?><LI><a href='&(article.url);'>&(article.name);</a><br>         
 
11:       &(article.abstract);</li> <?php 
12:   } 
13:   echo "</ul>\n"; 
14: #  echo "There were $article->N article", ( $article->N == 1 ) ? '' :
's'; 
15: } 
16: ?> 
17:  
18:  
19: <!-- Here should be PHP code to retrieve from the News topic, all 
20: articles which are less than 30 days old. --> 
21: <!-- 
22: <h1>Past News</h1> 
23:  
24: <!-- Here should be PHP code to retrieve from the News topic, all 
25: articles which are more than 30 days old. --> 
26:  
27: </center> 
28: 


-- 
Sent through GMX FreeMail - http://www.gmx.net


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to