Hi,

On 06.12.99 (21:32), [EMAIL PROTECTED] wrote:
> > In particular, I want to know which article a piece of code is
> > currently executed in and in which topic the article lives and
> > stuff like that ... would you mind putting together a list of
> > "environment variables" available in midgard php -- or is there
> > another way of getting the information I mentioned above .. ?
> 
> If you use an active page to display an article you already
> have the article ID. If you use mgd_get_article the resulting
> object has the ID of the topic the article lives under. See
> http://www.midgard-project.org/manual/function.get-article.html

I understand that in such a way that I wrote the following code,
which doesn't work :-)

if ($argc == 1) $id = $argv[0];
if ($id) $article = mgd_get_article($id);
$topic = mgd_get_topic($article->id);

(from code-init in my article page)

$topic is not set in this case...

     phr
-- 
> When we lose this battle, we _will_ lose the war.
                  -- Dave Whitinger on the importance of Mozilla

--
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]

Reply via email to