Print pages

tu.sha

ups  :roll:

I should continue study html and css...

thanks a lot!! :)

albatros

Hi,

use this snippet in the index.php of your template:
<link href="http://www.xyz.com/templates/templatename/print.css" rel="stylesheet" type="text/css" media="print" />.

As a text-link (if you want, also in your index.php of the template) you can use <a href="javascript:window.print()">Print this page</a>.

And as print.css you can make a copy of the screen.css and edit it as you want. Useful would be something like this .menu { display: none; } for a div "menu" which you don´t want to be printed.

That´s all. No special page to be adressed.

hth

Uwe
أنا لست إرهابيا. ليس لدى أي ورشة عمل القنبلة في الطابق السفلي. ليس لدى أي مرض الجمرة الخبيثة أيضا. أريد شراء لا مادة الريسين. أنا سوف ابدأ السفر إلى الولايات المتحدة الأمريكية

tu.sha

Quote from: doc on April 07, 2008, 11:12:59 AM
Hello,

simply define a seperate CSS file with media=print. Some templates do provide such a file. In addition try a search in the WWW, you will find tons of information there.


Christian,  thanks.

The question is how to address to this page?
I have a page with content.
After it I have 2 links - "back" and "print page".

<a href="xxxxxx">print page</a>

xxxxx = ? :)

doc

Hello,

simply define a seperate CSS file with media=print. Some templates do provide such a file. In addition try a search in the WWW, you will find tons of information there.

Regards Christian

tu.sha

Hi all!

Is there easy way to make print pages?
For example by using another template.

Actually I dont know how to address to the same page with another template.
May I use something like href=/pages/hello.php?template=simple

This exactly sample doesnt work but may be you know the working pattern? :))

Or any other way to create print page without creating special page for it to avoid double input in backend.

Thanks a lot!