On Fri, 31 Dec 1999, Ken Pooley wrote:

> I have a page of news stories where the title of the story is listed
> followed by the abstract...no problem so far...the title is formatted as
> link to the same page, or I have also tried a separate page, where the title
> and full content of the article are displayed. The URL is the ID # of the
> story. There is a page element called article which should pickup the fact
> that the call is for the whole article and display the whole text but it
> doesn't seem to pick up on that...I have even tried just re-using the code
> from the example site and monkeying with the  page type in a systematic
> way...the url comes out right but two things happen...if I go to a
> subsequent page "news" as in VMUC I get the default news page..it doesn't
> pick up on the id'd url, or if I build it to go to the same page,,,nothing
> happens, I get a 404 error....this leads me to think I am missing a switch
> or conditional test some where but I can't figure out where......

There are two ways to pass data to an midgard page (for a GET request,
which is what you're describing):

- encode them in the CGI way: /page?article=id&display=full etc
- pass them as extra path info: /page/id/etc/more/yaknow

In the second form, everything after the URL part that leads to the
page is put in the $argv array (first component = $argv[0], etc). For
this to work, the page must be marked 'active'. The situation you
describe above is probably caused by the page being static.

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