Philipp Rotmann, Linksystem Muenchen wrote:
> I'm observing a strange behaviour with the Midgard functions
> mgd_get_topic_articles* and/or the article class.
>
> The following code fragment ...
>
> if ($article = mgd_list_topic_articles($edition->id, "score", 18)) {
> while ($article->fetch()) { ?>
> <li>&(article.calstart); &(article.title); ...</li>
> <? }
> }
>
> ... works in general, but does not return any value in
> $article->calstart (as well as in $article->startdate, by the
> way). $article->title, ->id etc. works.
>
> Calling the same article with mgd_get_article(id) works better;
> I'm able to see all data fields.
The list functions limit the number of fields they fetch for query
efficiency reasons. It surprised me the first time around too.
Emile
--
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]