At 10:53 Uhr +0200 24.01.2003, Eero af Heurlin wrote:
Thanks for answering, but actually that's not the point: page and article are in the same SG. Nevertheless the page has only access to the articles in SG0. (I tried several articles of all sitegroups).Axel Gebauer wrote:I am sorry. I see, I misunderstood the way to check wether I got an article or not. My origin problem I have not solved yet was different. When trying to get an article by using:One point might be that the article is in SGx and you're trying to open it under a host belonging to SGy, SG0 stuff is readable under all sitegroups.
$article = mgd_get_article($art_id);
if(! $article ) {
echo "failed to get article.<br>\n";
echo "reason: ".mgd_errstr()."<br>";
} else {
echo '<div class="h3">'.$article->title.'</div>';
echo '<div class="p">'.$article->content.'</div>';
}
I always get:
failed to get article.
reason: Object does not exist
Nevertheless the article exists; I can read and edit it in asgard. Is it a problem of of wrong set permissions/user rights?
I also checked the owners resp. authors of the topics the requested articles are in but they are all owned by the group the authors of the requested articles belongs to ( - cos I am not sure wether it matters who owns topics and articles? May be the only relevant fact is to which SG the article belongs to?)
Does anyone has another idea?
Regards, Axel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
