Hello!

There are basically two alternatives:
1) If you know the id of the parent page record,
then you could use mgd_get_page_by_name($parent_id, $argv[i]);
where i is the last argument in the URL.

2) Easier way:
$midgard = mgd_get_midgard();
$page = mgd_get_page($midgard->page);

Check the "Other functions" part from the manual.
mgd_get_midgard() is very useful in many situations.

Best regards

  //Henri Kaukola



On Mon, 2002-07-15 at 15:55, Fredrik Jonson wrote:
> Hello, 
> 
> A really basic question. I've seen references to current article
> or topic on several places in the midgard code:
> 
> if ($article)
>  { 
>       ?>&(article.title)<?php 
>  } ?>
> 
> But I can't seem to find a similar referens to the current
> page. How do I get that without knowing the id. I'm trying to use
> it in my styles so I don't want to reference a specific id like
> the mgd_get_page(id) function.
> 
> How can I find out what variables and objects that are declared in
> different situations? Ie, are there more than $article and $topic 
> that are automagically created by midgard?
> 
> -- 
> Fredrik Jonson
> [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Henri Kaukola                           [EMAIL PROTECTED]
Consultant                              Tel: +358-20-198 6037
Nemein Oy                               http://www.nemein.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to