Developer forum

Forum » CMS - Standard features » PrinterFriendly and pdf in url

PrinterFriendly and pdf in url

Per Søgaard
Reply
 Can we in any way use these at the same time so that we can produce a pdf from the a printerfriendly css variant of the page?

&PrinterFriendly&pdf



Replies

 
Bjarne Rosendal
Reply
Hi Per

You should be able to. The system renders the page according to the order of the URL parameters.
So if you parse the printerfrindly=true parameter first and then the pdf=true second you should get the correct output.

Kind Regards

Bjarne Rosendal | Service Desk
 
Per Søgaard
Reply
 No using both does not work this way:

http://www.kohberg.com/Default.aspx?ID=62&PrinterFriendly&pdf

They work one at a time but not at the same time like abowe.
So my question is - is there another way to may it work?
 
Martin Gammelholm
Reply
Hi Per,

If you use Designs, you can use these parameters:
default.aspx?ID=62&pdf=true&LayoutTemplate=Designs/Condition/Print.html

Just edit the path so it points to your print template.


Kind regards

Martin Gammelholm | Service Desk
 
Per Søgaard
Reply
 Thanks.

But my print template is built into the normal page thus just having one template. 
And therefore i need to use it like i wrote above.

Can i do what i would like to do with another syntax or how can i do it?
 
Per Søgaard
Reply
 Testing e-mail notifications ;-)
 
Mads Ulsø Østergaard
Reply
Which template tags are needed in the Print.html file? I can't seem to make my page render any output when using this method. I've tried <!--@PageContent--> and <!--@ContentPlaceHolder--> in the Print.html file, but no luck. I'm using designs and layouts, and the following parameters: &pdf=true&LayoutTemplate=Designs/stenex2011/Master/print.html

Thanks in advance

 

You must be logged in to post in the forum