Printable pages?

9 posts by 5 authors in: Forums > CMS Builder
Last Post: November 11, 2010   (RSS)

Re: [nigelparry.net] Printable pages?

By Dave - January 8, 2009

Yes, just create a second detail viewer with a different filename (eg: articlePrinter.php) and link to it manually with something like this:

<a href="articlePrinter.php?<?php echo $record['num'] ?>">printer page</a>

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Printable pages?

By nigelparry.net - January 8, 2009 - edited: January 8, 2009

That's super easy, thanks so much Dave!

Here's the site by the way, it's 100% on CMS Builder.
http://victorkattan.com

Features? The right column that is visible on pages apart from the homepage is a section editor to allow for the client to update it.

Love that blockquote style!

Nigel
_____________________

For more information about Nigel Parry and nigelparry.net
websites please see http://nigelparry.net

nigelparry.net: award-winning communications
solutions for clients with something to say

Website & print design
Internet, public relations & media consulting

Re: [nigelparry.net] Printable pages?

By steve_e - November 11, 2010

Following on from this print output query, I was just wondering if there is any way of removing the standard headers and footers that are added when printing from a browser?

I know it's possible for the end user to do it individually through their browser settings, but if someone was producing articles only via the web, is it possible to use CSS to get nice A4 printouts without the top and bottom bits? Or is the only solution to create a separate pdf or other document and attach it as an upload?

Re: [steve_e] Printable pages?

By InHouse - November 11, 2010

Yes, you can absolutely block out or entirely remove or restyle page elements when they are printed. All you need to do is set a "print style sheet" on the page and adjust those rules to edit or hide those elements using a style rule like:

#menu {
display: none;
}


I also tend to double up at set visibility: hidden; but this is frankly redundant.

You can also do things like remove everything that's not the main article and then resize that article to fit nicely on that page and further adjust it to print in a serif font (for example) for easier on-page reading.

So long as you can clearly identify an element in your code via CSS, you can affect it.

Take a look at:

http://www.alistapart.com/articles/goingtoprint/
http://www.webcredible.co.uk/user-friendly-resources/css/print-stylesheet.shtml

We do this all the time and it works very well.
J.

Re: [InHouse] Printable pages?

By steve_e - November 11, 2010

Hi J. -
Thanks for this. I think I didn't explain myself properly. I don't mean navigational or other elements from the webpage itself, but the things the browser automatically adds above and below your page - eg URL, title, page 1 of x, etc.

I can't see anywhere in the links you gave me (for which many thanks, they're very interesting) that suggest this is possible.

Regards, Steve.

Re: [steve_e] Printable pages?

By InHouse - November 11, 2010

HI Steve,

Sorry about that - you did explain it but I just didn't pick on the clues provided. Unfortunately I don't have any useful answers to your actual question. ;-)

J.

Re: [InHouse] Printable pages?

By steve_e - November 11, 2010

NP J - thanks for taking the time! :)

Re: [InHouse] Printable pages?

By Chris - November 11, 2010

Hi Steve,

I don't think web browsers allow web designers to make suggestions about the headers and footers they add to printed webpages. I think that's something that's up to each user to configure for themselves.

See attached image.
All the best,
Chris
Attachments:

untitled.png 56K