[pmwiki-users] Editing CSS and JS files
Patrick R. Michaud
pmichaud at pobox.com
Thu Jan 26 14:41:31 CST 2006
On Thu, Jan 26, 2006 at 02:14:04PM -0600, Jon Haupt wrote:
> $pn = FmtPageName('$SiteGroup.StyleSheet', $pagename);
> $page = ReadPage($pn, READPAGE_CURRENT);
> if (!$page) { "page doesn't exist"; }
> $stylesheettext = $page['text'];
> $HTMLStylesFmt['skincss'] = $stylesheettext;
>
> Dom
>
> For whatever reason, when I do this, and when I put $SiteGroup.StyleSheet
> into double quotes, nothing happens; the styles are still not applied.
> I'm a little confused about the part "relatively to the current page being
> browsed"; am I not able to include that kind of thing in skin.php, maybe?
Code in skin.php has to declare any global variables before
they're used:
global $SiteGroup, $HTMLStylesFmt;
(And yes, you still need $SiteGroup.StyleSheet to be in double-quotes.
Pm
More information about the pmwiki-users
mailing list