Developer forum

Forum » Templates » Weblog - Printerfriendly article

Weblog - Printerfriendly article


Reply

How can I make a "Print" bottom in the ShowArticle template? I want to be able to printout the article, not the categories, menu and stuff like that.


Replies

 
Reply

Hi Michael

 

The only way to do this is to drop the DW printerfriendly function.

Create a regular stylesheet for print with the attribute media set to print.

 

// Sebastian

 
Reply

Hi Sebastian

Can you explain or give example?

/Michael

 
Reply

Adding this to your mastertemplate will enable you to write CSS only for print.

<link rel="stylesheet" type="text/css" href="/css/print.css" media="print" />

And the you can use window.print(); for printing instead of the built-in funtionality of Dynamicweb.

// Dammark

 

You must be logged in to post in the forum