On Mon, 6 Dec 1999, Philipp Rotmann wrote:

> I need some information on the "environment" of a midgard page. 

The object $midgard is retrieved with mgd_get_midgard and is available
in every page. Its fields are described in
http://www.midgard-project.org/manual/function.get-midgard.html
 
> 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

Bye,
Emile


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