Page 1 of 1

Printing module - {content} not showing up

Posted: Tue Aug 31, 2010 12:15 pm
by stuartgpalmer
Hi All

I am running CMSMS 1.8.2 on Linux. PHP version 5.2.9. MySQL version 5.0.58.

I am having a problem with the Printing module version 1.1.0. My print popup (custom template) only shows the {content} for the homepage. For all other pages, the {title} shows up, as does the rest of the printing template contents, but the {content} just isn't there.

What I have tried:

1. I tried reseting the default template.
2. Uninstall and reinstall the module.
3. Upload a fresh download of the entire CMS.

I then changed the default page for the site and found that the content for the new default page shows up fine in the printing popup. When I change the default page back to the home page, the homepage is the only page the print module works for.

Has anyone else seen this? Any help would be very much appreciated. Here is a link to the site:

http://nacc.eyes-down.net

And the PHP info:

http://nacc.eyes-down.net/info.php

Stuart

Re: Printing module - {content} not showing up

Posted: Tue Aug 31, 2010 6:25 pm
by Rolf
Hello stuartgpalmer,

Would you please post your custom print template here?

Regards, Rolf  :)

Re: Printing module - {content} not showing up

Posted: Fri Sep 03, 2010 6:18 pm
by kerryshamblin
I have a similar problem.

I'm running CMSMS 1.8.1 and Printing 1.1.0.

I'm calling the module with this code:

Code: Select all

{print showbutton="true" popup="true" script="true"}
The default printing stylesheet is associated with the template and is being called last of all the stylesheets.

Neither {title} nor {content} shows up. The popup action works, but the only thing I get on the page is:

[top of page]
Printing Find a Course http://clementecourse.com/index.php?mact=Printing,cntnt...

[bottom of page]
1 of 1 9/3/10 12:16 PM

Thanks for any suggestions.

Re: Printing module - {content} not showing up

Posted: Fri Sep 03, 2010 8:05 pm
by Rolf
Just wondering...  :-\
Please check your setting for allow_url_fopen
Should be on

grtz. Rolf

// ps. BUMMER  :(
stuartgpalmer wrote: And the PHP info:

http://nacc.eyes-down.net/info.php
// ps2.
kerryshamblin wrote: I'm calling the module with this code:

Code: Select all

{print showbutton="true" popup="true" script="true"}
Works for me... (on 1.8.2)
http://cmsms.dyndns.org/181base-nl/

Re: Printing module - {content} not showing up

Posted: Fri Sep 03, 2010 10:06 pm
by Dr.CSS
If I hit the print button/icon it works for me, shows the whole of content, just not the stuff on the side...

Re: Printing module - {content} not showing up

Posted: Sat Sep 04, 2010 12:07 am
by kerryshamblin
My .htaccess had this line:

php_value allow_url_fopen 1

I tried both:

php_value allow_url_fopen on
php_flag allow_url_fopen on

But neither did the trick. Am I wrong on syntax? Thanks for your help.

Re: Printing module - {content} not showing up

Posted: Tue Sep 07, 2010 10:59 am
by stuartgpalmer
Hi Rolf

Thanks for your help. Here is the template:



{$sitename} - {$title}




{cms_stylesheet name='newton_abbot_chiro_print_styles'}



{global_content name='header'}
{$title}

{$content block="content"}

© Copyright {custom_copyright} Newton Abbot Chiropractic Centre

       
{$printscript}
I have tried resetting the template to the default however, with no joy, so I suspect its not template related.

Re. allow_url_fopen. Where do I change this setting?

Thanks again.

Stuart

Re: Printing module - {content} not showing up

Posted: Wed Sep 08, 2010 9:38 am
by Rolf
stuartgpalmer wrote:

Don't know if it is relevant, but why javascript in a print pagetemplate?
stuartgpalmer wrote: {$content block="content"}
Did you try it with just {$content} in the template?

Is there a difference between the html-template of the homepage and the other pages?

grtz. Rolf  :)

Re: Printing module - {content} not showing up

Posted: Wed Sep 08, 2010 2:40 pm
by stuartgpalmer
Hi Rolf

The JS in the template was so that the printed matter follows brand. Unnecessary perhaps. Anyway, I have removed it for the moment.

The homepage template is indeed different. I tried changing an internal page to the same template as the homepage and alas no joy.

Re the {$content} tag. I have tried both options. The printing template is currently looking like this:



{$sitename} - {$title}

{cms_stylesheet name='newton_abbot_chiro_print_styles'}



{global_content name='header'}
{$title}

{$content}

© Copyright {custom_copyright} Newton Abbot Chiropractic Centre

       
{$printscript}
Once again, if I set one of the internal pages to become the site default page, it will then print fine  ???

Should a fix not be possible, are you aware of a work-around UDT I could use?

Thanks again

Re: Printing module - {content} not showing up

Posted: Thu Sep 09, 2010 11:40 am
by Dr.CSS
There is a good chance your problem comes from using $, have you tried {content}?...

Re: Printing module - {content} not showing up

Posted: Mon Sep 13, 2010 8:37 am
by stuartgpalmer
Hi Dr CSS

Yes, I have tried the {content} tag without the dollar. No success I'm afraid.

S

Re: Printing module - {content} not showing up

Posted: Wed Sep 22, 2010 7:15 pm
by sp
i had the same issue.

thanx for the "PHP url_fopen" advice.