Developer forum

Forum » Templates » Alternative to PrinterFriendly tag

Alternative to PrinterFriendly tag

Martin Gammelholm
Reply

Hello,

I've got a job to do, finding an alternative for the PrinterFriendly tag, used by the old Stylesheet method.

After we've upgraded one of our solutions, based on the old stylesheet, the PrinterFriendly tag is not workin anymore. I think it got phased out in some relases back?

Is it possible to call a specifik page template with the old Stylesheet-based DW in the url, like we can in Designs and Layouts with LayoutTemplate=path?
Afaik, what the PrinterFriendly tag did, was to just call another Stylesheet, so you got a new page template with stripped down HTML. So if I could just call the page template in the url, I would get the same result.

 

BR
Martin

 


Replies

 
Martin Gammelholm
Reply

Lucky shot!
Template=pagetemplate.html does the trick :)

 

BR
Martin

 
Nicolai Høeg Pedersen
Reply

Great!

Have a nice weekend!

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Hi

This is not working anymore, or am i doing something wrong?

I added &template=print.html to the url

Br

Hans

 
Nicolai Pedersen
Reply

Using designs and layout it is &LayoutTemplate=whatever.cshtml - that will look in the context of the website design after the right template.

 

You must be logged in to post in the forum