Check if printingpage [solved]

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
janvl
Power Poster
Power Poster
Posts: 980
Joined: Wed Aug 13, 2008 10:57 am

Check if printingpage [solved]

Post by janvl »

Hi

when one prints a page with the print-icon then the url shows
index.php?mact=CMSPrinting . . . . a lot more

Is there a way to influence what shows on the printing-page with something like:

{if mact=CMSPrinting}
show something bigger
{/if}

Kind regards,
Jan
Last edited by janvl on Sat Sep 29, 2012 7:41 am, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Check if printingpage

Post by Jos »

{get_template_vars} might show you some variable you can use
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Check if printingpage

Post by Rolf »

Print stylesheet?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
janvl
Power Poster
Power Poster
Posts: 980
Joined: Wed Aug 13, 2008 10:57 am

Re: Check if printingpage

Post by janvl »

Hi Jos

I did not think of "misusing" a set template variable.
On the normal page is a shoppingcart, not on the printpage.

So I used {if isset(Cart)}
and it is working

based on this, a qrcode is small on the normal page and 3x larger on the printingpage.

I love the flexibility of CMSMS!

Kind regards,
Jan
Post Reply

Return to “CMSMS Core”