> Hi !
>
> I just want to know how to get the URL of a page in Midgard.
> Apparently, the simplest way is to use the special <(name)> tag and to
include
> it in a <A HREF...> HTML tag.
>
> However, as this didn't seem to work, I designed a very simple code-init
page
> element which prints info about the page.
>
> This is the piece of code I used :
>
> Number of arguments : <? echo $argc ; ?> <BR>
> Name : <(name)> <BR>
> Title : <(title)> <BR>
> Id : <(id)> <BR>
> Author : <(author)> <BR>
>
> What's strange is the the title and author seem fine but I get nothing for
the
> id and the name of the page.
>
> This doesn't appear to come from the database which looks just fine ?
>
> Does anyone know how to solve this problem ?
> Maybe there's another way to know the current page name?

Yes, you may want to do:
<? $page=mgd_get_page($midgard->page); ?>
Name : &(page.name); <!-- same as <? echo $page->name; ?> -->
ID : &(page.id); <!-- same as <? echo $page->id; ?> -->
ID : &(midgard.page); <!-- same as the line above -->


>
> Thanks a lot !

You're welcome !

David


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