On 1/26/06, <b class="gmail_sendername">Patrick R. Michaud</b> &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt; 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>&gt;&nbsp;&nbsp;&nbsp;&nbsp;I've been trying to get CSS to function in this way here:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.pmwiki.org/wiki/Cookbook/CSSInWikiPages">http://www.pmwiki.org/wiki/Cookbook/CSSInWikiPages
</a><br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;But so far have had little success.&nbsp;&nbsp;The markup we came up with for<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;(:stylesheet:) doesn't seem to work, and I can't figure out how to make<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;the wiki use the source text of a wiki page without calling
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;?action=source.&nbsp;&nbsp;I'm still fairly certain it has to work, but haven't had<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;the time to tinker with it any more.<br><br>To grab the text of a wiki page, just do:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;$page = ReadPage($pagename, READPAGE_CURRENT);
<br>&nbsp;&nbsp;&nbsp;&nbsp;if (!$page) { &quot;page doesn't exist&quot;; }<br>&nbsp;&nbsp;&nbsp;&nbsp;$text = $page['text'];<br><br>To get the text only if the current visitor has read<br>authorization, use:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;$page = RetrieveAuthPage($pagename, 'read', false, READPAGE_CURRENT);
<br>&nbsp;&nbsp;&nbsp;&nbsp;if (!$page) { &quot;page doesn't exist or is read protected&quot;; }<br>&nbsp;&nbsp;&nbsp;&nbsp;$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)?&nbsp; as in
<br><br>&nbsp; $page = ReadPage('$SiteGroup.StyleSheet', READPAGE_CURRENT);<br>&nbsp; if (!$page) { &quot;page doesn't exist&quot;; }<br>&nbsp; $stylesheettext = $page['text'];<br>&nbsp; $HTMLStylesFmt['skincss'] = $stylesheettext;<br><br>When I put this into 
skin.php, nothing happens.&nbsp; What's not right here?&nbsp; Am I not allowed to substitute for $pagename like that?&nbsp; or am I not allowed to stick $stylesheettext in like I did?<br><br>Jon<br><br>-- <br>Jon Haupt<br>Fine &amp; 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>