[dev] StyleSheet options

Ramon Kagan rkagan@yorku.ca
Tue, 12 Feb 2002 13:07:58 -0500 (EST)


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.

Any thoughts,

Ramon Kagan
York University, Computing and Network Services
Unix Team -  Intermediate System Administrator
(416)736-2100 #20263
rkagan@yorku.ca

>
> You must set 'shared' to true for this preference, so that it is valid in
> all Horde applications.
>
> Jan.
>
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - discover your knowledge
> http://www.tip4all.de - Deine private Tippgemeinschaft
>
> --
> Horde Developers mailing list: http://horde.org/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org
>