Hello,
I have decided to use midgard to build one of our customer web site.
midgard looks exciting but very slow.
I have a problem that I've not been able to solve with the following
code fragment:
1: <?
2: $topicid = 20;
3: $topic = mgd_get_topic($topicid);
4: ?>
5: <H1>&(topic.name);</H1>
6: <?
7: $subtopic = mgd_list_topics($topicid);
8: if ($subtopic) {
9: ?>
10: <H2>Liste des th�mes disponibles</H2>
11: <?
12: while ($subtopic->fetch()) {
13: ?>
14: <p><a
href="/portail/topic/&(subtopic.id);.html">&(subtopic.name);</a></p>
15: <?
16: $article = mgd_list_topic_articles($subtopic.id);
17: if ($article) {
18: while ($article->fetch()) {
19: ?>
20: <p><a
href="/portail/article/&(article.id);.html">&(article.title);</a></p>
21: <?
22: }
23: } else {
24: ?>
25: <p>Il n'y a pas d'articles pour le th�me &(subtopic.name);
#&(subtopic.id);</p>
26: <?
27: }
28: }
29: }
30: ?>
the problem is at line 16.
$subtopic.id value is 21 and the url at line 14 is correctly built.
I have articles in topic #21 but $article value's is allways "false".
If I use the following line instead:
16: $article = mgd_list_topic_articles(21);
I get the correct result.
Do you have any idea?
BTW: I'm using midgard 1.2.5 on Linux mandrake 6.0.
Any help welcome.
Thnaks in advance.
begin:vcard
n:LORIN;Ronan-Yann
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:LORIN Ronan-Yann
end:vcard
--
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]