Karsten Dambekalns wrote: > I am at the edge of creating my first Midgard website. On the way > (although I feel like I am getting a grip on the concepts slowly) some > questions popped up, none of which seems to be answered in the either > manual or FAQ. > > 1. What is the difference between "active" and "normal" pages? They > both execute PHP content (as far as I see it)?!?
Yes, they do. The difference between them is that active pages serve their own URL and anything 'under it. An active page /hello/there would alos serve /hello/there/who/are/you and /hello/there/I/am/loopy (in addition to /hello/there of course). The remaining path elements, whith the trailing .html chopped off if present, will be available in the array @argv. Pages that are more specific overrule less specific ones, so if you have /hello and /hello/there, /hello/there would always be served by the second, even if /hello is active. Same goes for exact file/directory matches if you have mmp in favorfiles mode. > 2. How would I create a page like /dir/page.ext? I tried to just > create a new page, set "URL Name" to dir/page.ext but I get a 404. I Create a page /dir, then under that a page names page.ext. Page names only name their individual path components. > also tried /dir/page.ext, didn't work either. Just page.ext worked, > but I want the dir... As soon as I set the root page to "active" > (connection to question 1 :-) I get the page, but it has the root > page's content (as have any urls i enter...). I hope the explanation above makes clear why this happens. Emile --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
