On Sun, 2003-01-12 at 00:56, Cedric Gaspoz wrote:
> Hi,
Greetings!
> I have found the possibility to link an article with an other in Aegir.
> But when I get the article (mgd_get_article()) I only get the name of
> the "link" and no other information such as title, abstract and content.
>
> Could somebody give me the right way to get the content of an linked
> article?
Since the "symlink articles" features is implemented on PHP
level, Midgard itself doesn't know about it.
To support the feature you should add the following to your
article retrieval code:
<?php
// Get the original article
$article = mgd_get_article($id);
if ($article) {
// Get the symlink GUID if available
$symlink = $article->parameter("midcom.symlink","guid");
// Check whether article is a symlink
if ($symlink) {
// Replace the symlink with the actual article
$article = mgd_get_object_by_guid($symlink);
}
}
?>
> Cedric
/Bergie
--
Henri Bergius [EMAIL PROTECTED]
Consultant Partner Tel: +358-20-198 6032
Nemein Oy http://www.nemein.com/
Nemein Oy has moved. Our new address is Nemein Oy, Innopoli 2,
Tekniikantie 14, FIN-02150 Espoo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]