Page 1 of 1

Print module in 1.2 (PDF generation) and news module

Posted: Fri Nov 23, 2007 9:17 am
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

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

Posted: Fri Nov 23, 2007 12:43 pm
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

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

Posted: Fri Nov 23, 2007 1:57 pm
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

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

Posted: Tue Nov 27, 2007 11:58 am
by lampsie
*bump* anyone any ideas?
Thanks,
lamps

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

Posted: Tue Jul 08, 2008 10:51 am
by jack4ya
Bump.

Have similar issue.

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

Posted: Wed Jul 09, 2008 9:22 am
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.

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

Posted: Wed Aug 27, 2008 3:17 am
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!

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

Posted: Wed Aug 27, 2008 11:24 am
by cyberman
OK, my fault - Printing module generate the page for pdf output completely new so the suggested way cannot work ...

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

Posted: Fri Aug 29, 2008 3:43 am
by l1nda
thanks cyberman.

Are there any other suggestions?

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

Posted: Mon Oct 06, 2008 3:01 pm
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

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

Posted: Tue Oct 07, 2008 5:13 pm
by cyberman

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

Posted: Fri Oct 10, 2008 7:15 am
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.

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

Posted: Thu Oct 16, 2008 11:29 am
by lampsie
Hi guys,

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

lampsie