[dev] StyleSheet options
Jan Schneider
jan@horde.org
Tue, 12 Feb 2002 19:23:59 +0100
Zitat von Ramon Kagan <rkagan@yorku.ca>:
> Thanks,
>
> I'm having one other problem though.
>
> I have the optional stylesheets working everywhere except with the help
> pages.
>
> When I make the horde/templates/common-header.inc file have the
> following
> line:
>
> <link href="<?= $registry->getWebRoot('horde') ?>/css.php?style=<?=
> $prefs->getValue('color_style') ?>&size=<?=
> $prefs->getValue('size_style')
> ?>" rel="stylesheet" type="text/css" />
>
> (I've added the style and size values) I get:
>
> Fatal error: Call to a member function on a non-object in
> /usr/local/horde.40229/templates/common-header.inc on line 23
> Fatal error: Call to a member function on a non-object in
> /usr/local/horde.40229/templates/common-header.inc on line 23
>
>
> It seems that from the horde tree I can't access $prefs of the
> getValue()
> function. This doesn't make any sense to me because I see the function
> being used within the /horde/lib files.
>
> Without the ability to test against the two header values, the default
> help stylesheets are used, Although this is okay it is kind of
> goofy/weird.
The help window opens in a separate window and why should it be necessary
for the help window to instantiate the user prefs?
But you can modify Help::link to pass the necessary parameters to the help
window and from there you can just pass them through to the css file link.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft