Hello Emile,
> Are you sure this is in your ROOT element?
No.It's the same page...
> It can be of course but I don't usually see it this way. Can I see
> the content of your root element?
No - I don't know where I can find that?! Which root are we actually
talking about?
> Leave out this part for a moment
It now looks like
<?
$showlist = array();
$topics = array(28); reset ($topics);
while (list(, $topic) = each ($topics)) {
$article = mgd_list_topic_articles($topic, "reverse created");
if ($article && $article->fetch()) { $showlist[] = $article->id; }
}
reset ($showlist);
while (list(, $id) = each ($showlist)) {
$article = mgd_get_article($id);
?>
> You could even set the array to be only $topics = array(28)
done.
It now list only one line, an article from topic 28. Guess that's ok
in this setup.
But I still have the parse error-message. I'll give you the whole
page, stripped of HTML:
<?
$topic_id = 26;
if ($argc == 1) $id = $argv[0];
if ($id && !mgd_is_article_in_topic_tree( $topic_id, $id)) $id = 0;
if ($id) $article = mgd_get_article($id);
if ( $article ) {
?>
<[artikel-anfang]>
<[artikel-titel-anfang]>
&(article.title:h);
<[artikel-titel-ende]>
<[artikel-inhalt-anfang]>
&(article.content:h);
<[artikel-inhalt-ende]>
<[artikel-ende]>
<?
} else {
?>
//* [some HTML and layout things] *//
<?
$showlist = array();
$topics = array(28); reset ($topics);
while (list(, $topic) = each ($topics)) {
$article = mgd_list_topic_articles($topic, "reverse created");
if ($article && $article->fetch()) { $showlist[] = $article->id; }
}
reset ($showlist);
while (list(, $id) = each ($showlist)) {
$article = mgd_get_article($id);
?>
//* [...<HTML>&(article.name:h);</HTML>...] *//
<?
};
};
?>
//* [layout-commands] *//
<?
};
?>
Does that look ok? Works with everything else, besides a tiny thing
here, obviously, that's not working.
Alexander
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]