Arne Schirmacher wrote:
> One last question: Can I set the style for a page dynamically somehow? I
> have an active page of the form /topic/, which uses one style,
> and the pages of the form /topic/article123.html should use another
> style. Currently I have merged both styles into one style document and I
> select the appropiate one with an "if ($flag) {" construction, but this
> does not feel right. I would rather like to set the style explicitely
> in the piece of code where I handle the argv[] arguments.
Can't be done in 1.4. The style is collected as the first part of the
page construction process, long before any code is actually executed.
The PHP4 implementation probably will be able to do this though, now
that I think of it. Anyway, what you could do to get this effect is to
have a page /topic/, active or otherwise, with one style, and
/topic/article/ (probably active) with another.
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]