I'd like to have a new "Quick Print" button that bypasses the Wikidot print preview and allows us to set the parameters available in the preview window. I'll leave it open for discussion if this is accepted, but I'm thinking some syntax similar to the current button syntax:
[[button quickprint text="button text" attributes style(or class)="/* style information */"]]
Attributes
attribute | required | allowed values | default | description |
---|---|---|---|---|
basefont | no | 6, 8, 10, 12, 14, 16 | 12 | base font point size |
bodyfont | no | original, georgia, times, serif, arial | original | body font setting |
sourceinfo | no | on|visible, off|hidden | on|visible | toggle the source info on or off |
My latest project would greatly benefit from this. I'm using some @media print CSS to lay out my print view. I found that the Wikidot print preview does not display the page in line with my CSS rules, but when actually printing the page, it looks the way I expect. My end users don't need to have all of the Wikidot preview options exposed to them and this will allow me to control the output and save my users an extra step.
It would also allow us to define preset print layouts (like small font, medium font, large font) for the user to select from.
This mostly mimics the File > Print option in all browsers, but adds a nice feature of being able to take advantage of the print options Wikidot provides.
Just an idea, but are you able to use something like this?
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
Yes, I tried that, but it only prints the contents of the iframe that holds the javascript. The code I used is:
I also tried targeting the full page:
This throws an error (which based on a quick search may be a Firefox-only issue) because the iframe is on a different domain (wdfiles). This is what Firebug's Console shows:
This really isn't a huge deal since I can just instruct users to use File > Print, but thought it would be a nice addition to Wikidot that others might find useful.
Community Admin
What if you add a target modifier?
Sorry that I cannot test this myself; the printer is having some difficult issues.
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
Same result as my first attempt. I only get the contents of the iframe. If you're on a Windows PC, go get a copy of doPDF. It's a free printer driver for creating PDF files. I find it very useful for not only creating PDF files, but it's very handy for testing stuff like this while saving the trees. I've been using it since v5. It works great.
Community Admin