[pmwiki-users] Editing CSS and JS files

Jon Haupt jhaupt at gmail.com
Thu Jan 26 14:14:04 CST 2006


On 1/26/06, Dominique Faure <dominique.faure at gmail.com> wrote:
>
>
> The pagename definition you provide ('$SiteGroup.StyleSheet') must be
> "resolved" (variables, i18n,... replaced with their values) before
> all. This process is done relatively to the current page being
> browsed:
>
> global $pagename;
>
> $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?

Jon

--
Jon Haupt
Fine & Performing Arts Librarian
Iowa State University
152 Parks Library
Ames, IA 50011
515-294-0904
jhaupt at iastate.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060126/a30eed69/attachment.html 


More information about the pmwiki-users mailing list