Printing module - {content} not showing up

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
stuartgpalmer
New Member
New Member
Posts: 7
Joined: Fri Nov 27, 2009 11:46 am

Printing module - {content} not showing up

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Printing module - {content} not showing up

Post by Rolf »

Hello stuartgpalmer,

Would you please post your custom print template here?

Regards, Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
kerryshamblin
Forum Members
Forum Members
Posts: 87
Joined: Wed Apr 14, 2010 5:21 pm

Re: Printing module - {content} not showing up

Post 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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Printing module - {content} not showing up

Post 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/
Last edited by Rolf on Fri Sep 03, 2010 8:15 pm, edited 1 time in total.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Printing module - {content} not showing up

Post 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...
User avatar
kerryshamblin
Forum Members
Forum Members
Posts: 87
Joined: Wed Apr 14, 2010 5:21 pm

Re: Printing module - {content} not showing up

Post 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.
stuartgpalmer
New Member
New Member
Posts: 7
Joined: Fri Nov 27, 2009 11:46 am

Re: Printing module - {content} not showing up

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Printing module - {content} not showing up

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
stuartgpalmer
New Member
New Member
Posts: 7
Joined: Fri Nov 27, 2009 11:46 am

Re: Printing module - {content} not showing up

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Printing module - {content} not showing up

Post by Dr.CSS »

There is a good chance your problem comes from using $, have you tried {content}?...
stuartgpalmer
New Member
New Member
Posts: 7
Joined: Fri Nov 27, 2009 11:46 am

Re: Printing module - {content} not showing up

Post by stuartgpalmer »

Hi Dr CSS

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

S
sp
New Member
New Member
Posts: 5
Joined: Sun Aug 08, 2010 4:17 pm

Re: Printing module - {content} not showing up

Post by sp »

i had the same issue.

thanx for the "PHP url_fopen" advice.
Post Reply

Return to “Modules/Add-Ons”