SHARING & PRINTING INDIVIDUAL PAGE RECORDS

4 posts by 2 authors in: Forums > CMS Builder
Last Post: August 6, 2010   (RSS)

Re: [csdesign] SHARING & PRINTING INDIVIDUAL PAGE RECORDS

By Donna - August 5, 2010

Hi there!

What function do you want the print & share buttons to have? Do you want to go to a specific printer friendly page, or just bring up the browsers "Print" function?

To bring up the browsers "Print" function, you can do that with JavaScript:

<a href="javascript:window.print()">Click to Print This Page</a>

What do you want the share button to do?
Donna

--
support@interactivetools.com

Re: [Donna] SHARING & PRINTING INDIVIDUAL PAGE RECORDS

By csdesign - August 5, 2010

I might need the option for going to a specific printer friendly page too. thanks for the print function directions!

As far as the share buttons goes - Just a simple "email this to a friend" link would work. Sorry, I should have been more specific.

Re: [csdesign] SHARING & PRINTING INDIVIDUAL PAGE RECORDS

By Donna - August 6, 2010

Hi there,

You can use the following email link:

<a href="mailto:?subject=<?php echo thisPageUrl() ?>">Email this Page</a>

You can customize that link as much as you want, the bit of PHP in there is what will give the URL of the current page.

To make a printer friendly page, there are a couple of methods you can use. One is to create a new template with all of the non-printer-friendly bits removed.

The second is to simply use a different stylesheet for printing. Take a look at this page for details on how to do that:

http://webdesign.about.com/cs/css/a/aa042103a.htm
Donna

--
support@interactivetools.com