To print a tiddler without the header as well:
1. Modify StyleSheetPrint to include "#header" in the list of
exclusions
2. Modify PageTemplate by adding "id='header'" to the first div (of
class 'header')
While ensuring the mouse is not hovering over the tiddler when you go
to print will suffice to keep a tiddler's toolbar from printing, you
can do a similar thing with it so that the mouse position is of no
concern:
1. Modify StyleSheetPrint to include "#toolbar" in the list of
exclusions
2. Modify ViewTemplate by adding "id='header'" to the first div (of
class 'header')
Thanks, Simon, for the cleaner solution (which I definitely prefer).
Here's what I ended up with in the StyleSheet tiddler (PageTemplate and
StyleSheetPrint restored to their shadow state) so as to remove the
header, tiddler toolbar, and tiddler tag box in the print view:
@media print {
.header {display: none ! important;}
.toolbar {display: none ! important;}
.tagged {display: none ! important;}
}
On the subject of shadow tiddlers, StyleSheet is also a shadow tiddler,
so which is less appropriate to edit: StyleSheet or StyleSheetPrint?
The same result can be accomplished by editing either one.
Also, out of curiosity, why does "#header" not work in the
StyleSheetPrint @media print exclusion list (so that you have to put
.header on a separate line in stead), yet adding #toolbar and #tagged
does work?
Kevin