print view link

Author Message

risto CMS user

Tuesday 28 February 2006 11:58:08 pm

I have a site where I need to make use of print view.

My question is this.

How can I in a template make use of the link:

 <a href="{concat("/index.php/layout/set/print/content/view/full/",$node.node_id,"/")}">print view </a>

without it beeing displayed in the print version?

Sergiy Pushchin

Thursday 02 March 2006 2:45:21 pm

If I understand you correctly you should not have this link in your print_pagelayout.tpl, or do you have this link not in pagelayout but in override for full node view?

Siniša Šehović

Sunday 05 March 2006 5:27:22 am

Hi risto,

You could use css to hide link on print page.

Just create css file with:

a {
display: none;
}

and include that file like:

<LINK rel="stylesheet" media="print" href="YOUR_FILE.CSS" type="text/css">

Notice that media="print". Media can be "screen" or "print".

That will do the trick :-)

S.

---
If at first you don't succeed, look in the trash for the instructions.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:38:16
Script start
Timing: Jan 30 2025 21:38:16
Module start 'layout'
Timing: Jan 30 2025 21:38:16
Module start 'content'
Timing: Jan 30 2025 21:38:16
Module end 'content'
Timing: Jan 30 2025 21:38:16
Script end

Main resources:

Total runtime0.0201 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 588.0078151.1953
Module start 'layout' 0.00420.0034 739.2031220.6719
Module start 'content' 0.00760.0111 959.8750997.7891
Module end 'content' 0.01870.0014 1,957.664133.9922
Script end 0.0201  1,991.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002412.0358140.0002
Check MTime0.00104.8276140.0001
Mysql Total
Database connection0.00062.738510.0006
Mysqli_queries0.00209.805730.0007
Looping result0.00000.043810.0000
Template Total0.00104.910.0010
Template load0.00073.712510.0007
Template processing0.00021.192110.0002
Override
Cache load0.00052.419710.0005
General
dbfile0.00031.292880.0000
String conversion0.00000.033240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs