[Solved]How does the CMSprinting module work?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

[Solved]How does the CMSprinting module work?

Post 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
Last edited by jasnick on Sun Nov 20, 2011 10:22 pm, edited 1 time in total.
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: How does the CMSprinting module work?

Post 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.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: How does the CMSprinting module work?

Post 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
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: How does the CMSprinting module work?

Post by mcDavid »

The module is called "CMSPrinting".
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: How does the CMSprinting module work?

Post 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?
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm

Re: How does the CMSprinting module work?

Post 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.
jasnick
Power Poster
Power Poster
Posts: 695
Joined: Sat Jan 15, 2011 8:36 am

Re: How does the CMSprinting module work?

Post by jasnick »

Thanks, mcDavid
Post Reply

Return to “CMSMS Core”