Hi.

--On 19.07.2002 12:25:17 +0200 pp wrote:

>> Is it possible/wise to change the style a page uses dynamically
>> while the page is loaded. I imagine that one would use some
>> command in the <[code-init]> of a page, ie before the style is
>> loaded, and somehow tell midgard that the page should use a
>> different style than default?
> 
> Rather not casue midgard core will get the page faster than You.
> But You may try as style is getting from db later than code-init or
> code-global.
> 
> $page = mgd_get_page($midgard->page);
> $page->style = $another_style_id;

This won't work, since Midgard will load the whole Style tree before
Any Element (read: "midgard-root.php") is executed.


Live long and prosper!
Torben Nehmer

--
Torben Nehmer, Munich, Germany
http://www.nathan-syntronics.de, mailto:[EMAIL PROTECTED]
PGP Public Key ID on wwwkeys.(de.)pgp.net: 0x7E9DE456

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to