Print module in 1.2 (PDF generation) and news module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
lampsie
Forum Members
Forum Members
Posts: 38
Joined: Fri Nov 17, 2006 9:25 am

Print module in 1.2 (PDF generation) and news module

Post by lampsie »

Hi,

I've added this line to my template:

Code: Select all

{cms_module module='printing' pdf="true" text="Print PDF"}
This works well for all pages except on News pages. I have a page set up called News Archives which contains this:

Code: Select all

{news category="General" detailpage="News Archive"}
However, when I print to PDF, I only every get the summery page. I understand that this is because its linking to the page ID of NEws Archives, regardless of me clicking into an article, however I don't know how to stop this!

How can I set this up so that if I have clicked into an article, and then hit Print PDF, it will only print the article?

Thanks,
Lamps
Last edited by lampsie on Fri Nov 23, 2007 9:30 am, edited 1 time in total.
faglork

Re: Print module in 1.2 (PDF generation) and news module

Post by faglork »

Hi,

maybe a dumb question but: Why use the print module at all? Why not simply a special CSS for printing??

Cheers,
Alex
lampsie
Forum Members
Forum Members
Posts: 38
Joined: Fri Nov 17, 2006 9:25 am

Re: Print module in 1.2 (PDF generation) and news module

Post by lampsie »

Its a fair question  ;)
Much of our site is giving end users tutorials added via the News Module, and we want the ability for users to download a PDF version of the pages so that they can put it onto USB keys etc.

Thanks,
lamps
Last edited by lampsie on Fri Nov 23, 2007 2:37 pm, edited 1 time in total.
lampsie
Forum Members
Forum Members
Posts: 38
Joined: Fri Nov 17, 2006 9:25 am

Re: Print module in 1.2 (PDF generation) and news module

Post by lampsie »

*bump* anyone any ideas?
Thanks,
lamps
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: Print module in 1.2 (PDF generation) and news module

Post by jack4ya »

Bump.

Have similar issue.
cyberman

Re: Print module in 1.2 (PDF generation) and news module

Post by cyberman »

Not sure if it will work but read:

1. Modify your news detail template like

Code: Select all

{capture assign=pdfnews}
  ... your current News detail template ...
{/capture}
{$pdfnews}
2. Insert {$pdfnews} in Printing modules PDF template

3. That's all

Maybe there could be a problem for you cause only one pdf template is available.
l1nda
Forum Members
Forum Members
Posts: 18
Joined: Mon Jul 28, 2008 5:49 am

Re: Print module in 1.2 (PDF generation) and news module

Post by l1nda »

Hi
I just tried the last solution to this problem but not sure if i'm doing it right.
does anyone else have other suggestions on how to print a news detail page?
Thanks!
cyberman

Re: Print module in 1.2 (PDF generation) and news module

Post by cyberman »

OK, my fault - Printing module generate the page for pdf output completely new so the suggested way cannot work ...
l1nda
Forum Members
Forum Members
Posts: 18
Joined: Mon Jul 28, 2008 5:49 am

Re: Print module in 1.2 (PDF generation) and news module

Post by l1nda »

thanks cyberman.

Are there any other suggestions?
lampsie
Forum Members
Forum Members
Posts: 38
Joined: Fri Nov 17, 2006 9:25 am

Re: Print module in 1.2 (PDF generation) and news module

Post by lampsie »

Hi there,

I'm on to version 1.4.1, and this issue still seems to exist :(
Has anyone any idea's since?

Thanks!

Lampsie
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm
Location: Denmark

Re: Print module in 1.2 (PDF generation) and news module

Post by Silmarillion »

Generally the printing module does not work well with module output. But this is a core problem which are being worked on for version 2.0 of the cms.

Sil.
lampsie
Forum Members
Forum Members
Posts: 38
Joined: Fri Nov 17, 2006 9:25 am

Re: Print module in 1.2 (PDF generation) and news module

Post by lampsie »

Hi guys,

Thanks for the update on this, and looking forward to version 2.0 :)

lampsie
Post Reply

Return to “Modules/Add-Ons”