While we're on the topic of stylesheets, I have another question. I know the global $Text parameter has just been removed, but I was thinking of trying to find a way to get the wiki engine to use the raw text of a wiki page as an additional local CSS file in the same way that is used by Tiddlywiki:
<br><br><a href="http://www.tiddlywiki.com/">http://www.tiddlywiki.com/</a><br><br>In this wiki, which is actually a desktop wiki--not a server-side wiki--you can create "tiddlers" for "liquid" CSS, such that in a page called "ExampleStyleSheet" tiddlywiki applies the following css:
<br><br>displayArea {background-color: #ffccff; }<br>mainMenu {border: 1px solid #ffff88; }<br>commandPanel {background-color: #008800; }<br><br>Anyhow, I think it would be desirable to some, perhaps not all, to be able to edit the CSS from the user-side within a wiki page. For example, what if the CSS for a skin existed within a wikipage called
Site.StyleSheet. Then you could use some kind of statement in the skin template to make it load the text from that wiki page (the original text, though, not the marked up text, and this is the hard part) or perhaps put a line in
config.php which adds the text of the page as an additional $HTMLStylesFmt line.<br><br>Has anybody tried anything like this? Any idea how it could work? Would the recent removal of $Text make this a problem, or could I use the other parameters Pm mentioned?
<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>