[pmwiki-users] Editing CSS and JS files
Patrick R. Michaud
pmichaud at pobox.com
Thu Jan 26 13:12:55 CST 2006
On Thu, Jan 26, 2006 at 12:26:03PM -0600, Jon Haupt wrote:
> Alright, so how do I refer in markup directly to a particular page (e.g.
> $SiteGroup.StyleSheet)? as in
>
> $page = ReadPage('$SiteGroup.StyleSheet', READPAGE_CURRENT);
> if (!$page) { "page doesn't exist"; }
> $stylesheettext = $page['text'];
> $HTMLStylesFmt['skincss'] = $stylesheettext;
>
> When I put this into skin.php, nothing happens. What's not right here?
I think you want double-quotes around the pagename:
$page = ReadPage("$SiteGroup.StyleSheet", READPAGE_CURRENT);
Pm
More information about the pmwiki-users
mailing list