That's what it was! I needed to make them 'active' ! Thanks for the
explanation, Emile. I truly appreciate it.

Chari
[EMAIL PROTECTED]

-----Original Message-----
From: Emiliano Heyns <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, April 07, 2000 4:43 PM
Subject: Re: [midgard] Lost URLs


<snip!>
>The code you posted only retrieves the list of articles.
>
>What you probably want is a page that:
>
>- shows the listing when references as /systems/
>- shows the specific article when referenced as /systems/id.html
>
>To this end, do the following:
>
>mark the page 'active' in the admin site. Active pages do not only
>server their direct URL (/systems/) but in fact all URLs 'under' that
>page.
>The rest of the path gets the trailing '.html' stripped and the elements
>of the path, separated by optional slashes, are put in the array $argv.
>The URL /systems/this/is/just/3/an/example.html to active page /systems/
>would call that page and make the array ('this', 'is', 'just', '3', 'an'
>'example') available to the page script.
>
>The page can now test what to do: if $argv[0] is false, no information
>was
>presented, so show a list as your code did. If $argv[0] is non-false,
>assume
>it holds an article ID to fetch and display. Get it with
>mgd_get_article($argv[0])
>and display it's fields.
>
>I think the VMUC site has examples of this code.
>
>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