Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Creating Printer Friendly Pages


Go to End


6 Posts   2700 Views

Avatar
Jeramie

Community Member, 34 Posts

13 February 2010 at 5:30am

Hi, I am a noob with Silverstripe still and I am trying to figure out how to create printer friendly pages for one of my sites. I have created the site for a friend and when I choose print, it prints three pages, the first being the current image from the js slideshow, the second being the content, and the third is whatever is left over. I am sure it is a design issue on my part, but I am just looking for some guidance on where I can go to find the answer to this. Thanks, any help is appreciated.

the site is:
www.hillcountryproduceclub.com

Thanks

Avatar
Willr

Forum Moderator, 5523 Posts

13 February 2010 at 11:30am

Check out a basic tutorial on http://ssbits.com/using-a-print-stylesheet/ for a quick tutorial on how to add print stylesheet to SS.

Avatar
Jeramie

Community Member, 34 Posts

14 February 2010 at 4:48am

Thanks for the quick reply Willr. I actually followed that tutorial and couldnt get it to work in 2.3+. I finally was able to get it to work by using the following format in my page.php

Requirements::themedCSS("print", "print");

I appreciate you pointing me in the right direction.

Avatar
DrWebGuy

Community Member, 16 Posts

3 December 2010 at 9:36am

I have tried the code both ways, but I cannot get any results. Is there a special call that must be made in the Page.ss file to incorporate the changes?

Avatar
SerenityIT

Community Member, 13 Posts

7 April 2011 at 9:02pm

Also not finding this is working properly... Any hints to whats up? This is crucial to getting a decision made.

I'll appreciate it very much!

Avatar
helenclarko

Community Member, 166 Posts

29 November 2012 at 4:33pm

Hi All,

I am having a problem with printer friendly pages on firefox.

For whatever reason, firefox will keep margins/borders for all items regardless to whether I have "display" set to "none".
I have sidebar, header and footer set to not be displayed. however my content is still effected by the header, footer and sidebar.
My content is pushed all the way to the Right, as if the Sidebar was still being displayed.

This is completely different for IE, which displays everything as expected.

Thanks
-hel