[opencms-dev] >1 template per content item ???
Marian Kasala
marian.kasala at apsoft.sk
Wed Nov 20 10:06:03 CET 2002
Hi Mark,
we have produced a "printer friendly" page displaying only content of
body element.
In attachment you can find pieces of code.
There is printer friendly page template and its controlling class:
print-page.xml
CmsPrintPage.java
and another template print-link.xml (included in every page) containing button link to printer friendly page.
It can display also dynamic concent (if you use other "dynamic" template in place of body element)
but only 2 levels deep.
If something will be not clear feel free to ask.
Best Regards,
Marian Kasala
AP Soft GmbH
Pod juhom 1
SK-911 01 TrencĂn
Tel.: +421 32 7480056
Fax: +421 32 7480053
----- Original Message -----
From: <mfoley5 at csc.com.au>
To: <opencms-dev at opencms.com>
Sent: Wednesday, November 20, 2002 2:14 AM
Subject: [opencms-dev] >1 template per content item ???
> Hi All,
>
> Our client would like to have a "print this page" link on each page of
> their website - but they don't want this to simply send the current page to
> the printer, but to print a version of the page without the "decorations"
> (header block, side navigation, footer). (We do not want to use Frames).
>
> Has anybody done something like this, or produced a "Printer Friendly" page
> system? I can't see how to do this without duplicating content (which I
> don't want to do) and specifying 2 templates.
>
> Thanks,
> Mark
>
> Mark Foley
> __________________________________________________
> CSC
> 212 Northbourne Ave, Braddon, ACT 2612
> Ph: +61-2-62468487 Email: mfoley5 at csc.com.au
> ----------------------------------------------------------------------------------------
>
> This email, including any attachments, is intended only for use by the
> addressee(s) and may contain confidential and/or personal information and
> may also be the subject of legal privilege. Any personal information
> contained in this email is not to be used or disclosed for any purpose
> other than the purpose for which you have received it. If you are not the
> intended recipient, you must not disclose or use the information contained
> in it. In this case, please let me know by return email, delete the message
> permanently from your system and destroy any copies.
> ----------------------------------------------------------------------------------------
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print-page.zip
Type: application/x-zip-compressed
Size: 2546 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20021120/552b6576/attachment.bin>
More information about the opencms-dev
mailing list