Henri Bergius wrote:
> The page /style/ is an active page, meaning that it
> can take parameters from the URI path, like this:
>
> /page/arg0/arg1/arg2.html
> In this case we use the ID of the style as the first
> (and only argument). I don't have an Admin site before
> me right now, but I'd assume that the /style/ page has
> a code-init element (which is an element that gets parsed
> before the actual style parsing at ROOT element begins,
> see midgard-root.php3 for more details).
Thank you. I'd copied the code-init page element from one
of the Admin pages, but had NOT marked the page as active
> The code-init element has probably something like this
> in it:
> <?php
>
> /* Check that the page had only one argument */
> if ($argc == 1) {
>
> /* Fetch the style corresponding to the
> first argument in the argument array */
> $style = mgd_get_style($argv[0]);
>
> }
> ?>
Yes it does. :)
OK, that was a pretty simple answer. So let me ask another question:
Obviously code-init is... well, I hesitate to call it a "reserved"
keyword, but that's what it would be called in other programming
languages... point is, "code-init" is an element name that has
special meaning to Midgard. I've seen "code-global" used on the
Admin site also. Is there a list of these special element names
and their meanings anywhere on the Midgard web site?
Thanks for the quick answer.
--
North Shore Technologies, Cleveland, OH
http://NorthShoreTechnologies.net
Steve Sobol, BOFH - President, Chief Website Architect and Janitor
Spammers and Net-abusers: Don't bother asking me for service. See
http://NorthShoreTechnologies.net/go/policy/ for more information.
--
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]