Page 1 of 1
[Solved]How does the CMSprinting module work?
Posted: Fri Nov 18, 2011 12:22 pm
by jasnick
Using 1.10.1
I am not sure how to use the printing module. I have set up the Print stylesheet with what I want printed and what I don't want printed and attached it to my template.
What is the Link template and how is it used.
I see in the module help to add {cms_module module='CMSPrinting' params} to my template. My normal template I suppose this means? Do I actually use params or am I supposed to insert something else in there?
Also, what do I actually do with the print template supplied with the module.
Thanks
Re: How does the CMSprinting module work?
Posted: Sat Nov 19, 2011 4:21 pm
by mcDavid
No, you're not supposed to litterally use the word "params"
If you look at the bottom of the module help page, you will see a list of parameters you can use to change some settings. For example if you want to change the text on the print button, you can add text="my_own_text".
This is all optional, so if you want to use the default settings you don't have to add any parameters.
The smarty tag will be replaced by a print button when your site is rendered. You can add this tag to your template if you want such a button on every page, but you can also add it to the content, if you only want the button on one specific page.
Re: How does the CMSprinting module work?
Posted: Sun Nov 20, 2011 12:15 am
by jasnick
Thanks mcDavid - so now I have tried
{cms_module module='printing' text="Print" showbutton="true"}
on the page that I need to be printable in the place I need the print button, but it doesn't show. Have I made a mistake with the params?
Do I do nothing with the printing templates?
Thanks
Re: How does the CMSprinting module work?
Posted: Sun Nov 20, 2011 12:34 am
by mcDavid
The module is called "CMSPrinting".
Re: How does the CMSprinting module work?
Posted: Sun Nov 20, 2011 1:20 am
by jasnick
The module is called "CMSPrinting".
Fantastic! It now works. I wonder why I have two modules for printing???? One called Printing and the other CMSPrinting.
Thank you very much!
Now, some of the text - the h1's - appear far too big on the printing page. Where can I change the font-size just for the printing version. I have added it to the Print stylesheet to no avail.
I am not sure if the Print.css stylesheet I adapted and which is attached to my template is working. It is certainly removing the stuff I want removed but I cannot change the text styling. As a test, I changed
body {
color: #000 !important; /* we want everything in black */
background-color:#fff !important; /* on white background */
font-family:arial; /* arial is nice to read

*/
border:0 !important; /* no borders thanks */
}
to make the color red but it didn't change it. I also added h1 {font-size: 12pt} as I read somewhere that only pt is recognised by a print stylesheet but it didn't work.
I must be missing something.
[Edited] I added the styles for the heading to the "override print stylesheet" in the Module and it now displays as needed. So why do I need to use the Print.css?
Re: How does the CMSprinting module work?
Posted: Sun Nov 20, 2011 8:03 pm
by mcDavid
"Printing" is the old printing module, shipped with CMS 1.9.x and lower. "CMSPrinting" is the new one.
You can remove the old Printing module if you want to.
Re: How does the CMSprinting module work?
Posted: Sun Nov 20, 2011 10:21 pm
by jasnick
Thanks, mcDavid