[EMAIL PROTECTED] wrote:
>
> 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.
For URL you should use $midgard->uri value. It returns absolute path of
page.
>
> 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.
Because there are no such predefined values like <(name)> and <(id)>.
Istead , use $midgard->uri and $midgard->page respectively.
--
Alexander
--
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]