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 did not solved yet was different. When trying to get an article by using:By default (apart from SG rules, host in SGx can only access objects in SGx and SG0) all objects allow reading, so either the article in question is in wrong sitegroup or there is something serioysly wrong with the setup.
$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 got:
failed to get article.
reason: Object does not exist
Nevertheless the article exists what I can see in asgard. Is it a problem of of wrong set permissions/user rights?
Try to make a simple script under some SG0 host that first gets the article then call <?php echo "<pre>\n"; print_r($article); echo "</pre>\n"; ?> to get full listing of the articles properties, doublecheck the sitegroup there.
/Rambo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
