On 1/26/06, <b class="gmail_sendername">Patrick R. Michaud</b> <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Jan 26, 2006 at 09:20:20AM -0600, Jon Haupt wrote:<br>> I've been trying to get CSS to function in this way here:<br>><br>> <a href="http://www.pmwiki.org/wiki/Cookbook/CSSInWikiPages">http://www.pmwiki.org/wiki/Cookbook/CSSInWikiPages
</a><br>><br>> But so far have had little success. The markup we came up with for<br>> (:stylesheet:) doesn't seem to work, and I can't figure out how to make<br>> the wiki use the source text of a wiki page without calling
<br>> ?action=source. I'm still fairly certain it has to work, but haven't had<br>> the time to tinker with it any more.<br><br>To grab the text of a wiki page, just do:<br><br> $page = ReadPage($pagename, READPAGE_CURRENT);
<br> if (!$page) { "page doesn't exist"; }<br> $text = $page['text'];<br><br>To get the text only if the current visitor has read<br>authorization, use:<br><br> $page = RetrieveAuthPage($pagename, 'read', false, READPAGE_CURRENT);
<br> if (!$page) { "page doesn't exist or is read protected"; }<br> $text = $page['text'];<br><br>Pm<br></blockquote></div><br>Alright, so how do I refer in markup directly to a particular page (e.g. $SiteGroup.StyleSheet)? as in
<br><br> $page = ReadPage('$SiteGroup.StyleSheet', READPAGE_CURRENT);<br> if (!$page) { "page doesn't exist"; }<br> $stylesheettext = $page['text'];<br> $HTMLStylesFmt['skincss'] = $stylesheettext;<br><br>When I put this into
skin.php, nothing happens. What's not right here? Am I not allowed to substitute for $pagename like that? or am I not allowed to stick $stylesheettext in like I did?<br><br>Jon<br><br>-- <br>Jon Haupt<br>Fine & Performing Arts Librarian
<br>Iowa State University<br>152 Parks Library<br>Ames, IA 50011<br>515-294-0904<br><a href="mailto:jhaupt@iastate.edu">jhaupt@iastate.edu</a>