Jump to content

Print view for pages


Recommended Posts

In your template file:

if($input->get('print')) {
	// Your special print-friendly markup here
} else {
	// Your normal markup here

In your normal markup include a link to the print-friendly view:

<a href="<?= $page->url ?>?print=1">Print-friendly view</a>

If you want to automatically open the browser's print dialog you can include this in your print-friendly markup:



  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...