How to changing the look of a link when we print his content ?

Author Message

laurent le cadet

Tuesday 30 September 2003 5:17:19 am

Hi,

I have a list of links in a menu :

{let article_list=fetch( content, list, hash( parent_node_id, 224, limit, 2,sort_by, array( array( priority )) ) )}

<table class="leftmenu" width="100%" border="0" cellpadding="0" cellspacing="0"><br />
{section name=Article loop=$article_list}
<tr>
<td class="menuitem">
<a class="small" href={concat( "/content/view/full/", $Article:item.node_id,"/" )|ezurl}>
{$Article:item.name|wash}
<img src={"pixel.gif"|ezimage} height="14" width="6" border="0" /><img src={"indic.gif"|ezimage} height="7" width="6" border="0" /></a></td>
</tr>
{/section}
</table>

When I click on one of the links which are shown, it print the right object but I want this link to turn in a different colour (for exemple) when the page is print.

Any ideas ?

Laurent

James Packham

Tuesday 30 September 2003 5:23:33 am

I think this documentation page tells you how to do this and provides an example. That is if I understood you correctly...

http://www.ez.no/content/view/full/24384

laurent le cadet

Tuesday 30 September 2003 5:44:39 am

Sorry but maybe my explanation is a bit confused and my english approximative.

I want to show a list of links with the method above but with a different appearance (colour, font, etc...) for the link corresponding to the object currently print.

laurent.

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 19 2025 00:58:34
Script start
Timing: Jan 19 2025 00:58:34
Module start 'layout'
Timing: Jan 19 2025 00:58:34
Module start 'content'
Timing: Jan 19 2025 00:58:35
Module end 'content'
Timing: Jan 19 2025 00:58:35
Script end

Main resources:

Total runtime0.9783 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.4141152.6563
Module start 'layout' 0.00730.0032 742.070339.5078
Module start 'content' 0.01060.9662 781.5781511.0078
Module end 'content' 0.97680.0015 1,292.585912.0938
Script end 0.9783  1,304.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3689160.0002
Check MTime0.00180.1794160.0001
Mysql Total
Database connection0.00140.145410.0014
Mysqli_queries0.920594.0893570.0161
Looping result0.00080.0863550.0000
Template Total0.945296.620.4726
Template load0.00200.205320.0010
Template processing0.943296.408020.4716
Template load and register function0.00010.010910.0001
states
state_id_array0.00080.086110.0008
state_identifier_array0.00130.133520.0007
Override
Cache load0.00170.1728290.0001
Sytem overhead
Fetch class attribute can translate value0.00070.069620.0003
Fetch class attribute name0.00170.177750.0003
XML
Image XML parsing0.00090.093920.0005
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00100.0988220.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs