Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Creating Printer Friendly Pages

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

Page: 1
Go to End
Author Topic: 1711 Views
  • Jeramie
    Avatar
    Community Member
    34 Posts

    Creating Printer Friendly Pages Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Creating Printer Friendly Pages Link to this post

    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.

  • Jeramie
    Avatar
    Community Member
    34 Posts

    Re: Creating Printer Friendly Pages Link to this post

    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.

  • DrWebGuy
    Avatar
    Community Member
    16 Posts

    Re: Creating Printer Friendly Pages Link to this post

    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?

  • SerenityIT
    Avatar
    Community Member
    13 Posts

    Re: Creating Printer Friendly Pages Link to this post

    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!

  • helenclarko
    Avatar
    Community Member
    25 Posts

    Re: Creating Printer Friendly Pages Link to this post

    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

    1711 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.