Chari Daignault wrote:

> Unfortunately, I'm sure you know what you're talking about when
> responding, however, some of us who have not been involved in the
> development of the Midgard system may not completely "get" what you're
> trying to say. If  you could be a bit more explicit, I might be able to fix
> the missing the syntax and get out of everyone's hair.
> 
> As I'd mentioned in previous posts, this page's code and others that I have
> referenced are almost *exactly* the same as the example site's code. Only
> certain names were changed, i.e., to systems from products.

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