Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
[plugin] [ORPHAN] egg_printcss
egg_printcss
———————————————————-
This is an advanced print style sheet implementation for textpattern. Please remember that this is nearly untested software and there is no warranty.
What does this plugin?
This plugin allows to specify a default screen and print style sheet (css). If the url parameter “do” has the value “print” the print css is used. Else it shows the screen css. There is also a option to use clean URLs.
Advantages
There are serveral advantages if you are useing this. The first and most important is that you can print what you see. Many users are scared if they encounter a different screen and print view. And the print previews are linkable (that’s sooo Web 1.0).
Installation
Install the plugin and activate it. Okay, if you can see this you’re done.
Now you can delete the line with <txp:css /> in it. Use <txp:egg_printcss /> instead. See below for parameters.
For clean URLs a modification of .htaccess is needed. Before the line RewriteRule ^(.*) index.php add the following:
RewriteBase /
RewriteRule •([•/]+)print/?$ print [R,L]
RewriteRule •(.+)/print/?$ ?do=print
[replace • with ^]
For translation replace ever occurance of print accordingly except the last one (?do=print).
—————————————————-
For more info about all the tags refer to the plugin help. Clean URLs are working with individual articles only. This has surely to do with the RewriteRules and I don’t really know what I’am doing there so somebody could help me with that.
Example:
Screen View: http://klingeltonhilfe.de/artikel/teure-klingeltoene
Print View: http://klingeltonhilfe.de/artikel/teure-klingeltoene/drucken/
Further info in German is available here: http://yatil.de/Weblog/egg_printcss
Download is here: http://yatil.de/file_download/4
Last edited by yatil.de (2006-04-14 20:26:08)
Eric Eggert
Textpattern-Sites: yatil! | Snookerblog | Schachfreunde Ruhbank
Offline
#2 2006-04-14 22:18:51
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: [plugin] [ORPHAN] egg_printcss
That is nice, actually tranquillo had done such a plugin just recently, that I hadn’t tested yet.
I never had considered it actually a Usability Issue,if you hadn’t explained the reason just above.
I’m not sure though if I’ll have the time to test this out.
regards, marios
Last edited by marios (2006-04-14 22:21:53)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Pages: 1