]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/Print_link.mdwn
web commit by JoshTriplett: Remove account-creation password item, now a separate...
[ikiwiki.git] / doc / todo / Print_link.mdwn
index 7927c27081f1eb14793bfa76cc26af034741e7d6..697878019c706a51e339a5a581d700dfe8ca0afa 100644 (file)
@@ -35,5 +35,39 @@ for all ikiwiki pages. --Pawel
 >
 > --[[Joey]]
 
->> Maybe you could add print.css file for printable version? We just have
->> local.css file for a local styling. --Pawel
+>> Maybe you could add `print.css` file for printable version? We just have
+>> `local.css` file for a local styling. --Pawel
+
+>>> Sure, very doable, but the UI to switch to it when printing, I don't
+>>> know..
+
+>>>> Is the IU to switch is really necessary? Why don't use only
+>>>> `style.css` and `print.css` files in header of printable version
+>>>> of page? The second file can be equivalent of `local.css` file
+>>>> and it can overwrite default CSS styles.
+
+>>> BTW, I'm sure that the Print link as originally requested could be
+>>> written as a plugin fairly simply. --[[Joey]]
+
+>>>> I'm not a Perl expert, but I can take a look at code of other
+>>>> ikiwiki plugins.
+
+>>>> BTW, I also was thinkig about plugin to CVS support,
+>>>> but unfortunately I don't have too much free time. --Pawel
+
+>> You don't need a stylesheet-switching UI or a printer-friendly
+>> version; just link to a stylesheet with `media="print"`. --[[JoshTriplett]]
+
+>>> Example? --[[Joey]]
+
+>>>> I used `meta` to add a `media="print"` stylesheet to the [[sandbox]].  In print or
+>>>> print preview (on browsers supporting data URIs), you should no longer
+>>>> see the search form. --[[JoshTriplett]]
+
+>>>>> (And I broke it, since it was a security hole ;-). So it looks like
+>>>>> media=print can be 
+>>>>> [used inside a style sheet](http://www.w3.org/TR/REC-CSS2/media.html),
+>>>>> so the thing to do would be to edit style.css to automatically disable parts 
+>>>>> not wanted when printing. That would rock. --[[Joey]]
+
+Yay! I've modified the stylesheet and this is [[done]]. --[[Joey]]