pdf footer, link back to original page

Author Message

bisk

Monday 27 September 2004 3:47:56 am

I'm trying to add to the footer.tpl of a pdf file a link back to the original product page. Adding a normal link works fine, but with url_alias and ezroot it breaks. Does anyone have an example on how to do this properly?

thanks

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Kåre Køhler Høvik

Monday 27 September 2004 5:46:37 am

Please post your current code. This should be possible.

Kåre Høvik

bisk

Monday 27 September 2004 7:37:07 am

I've got the link working, but it doesn't stay in the footer area. Do I have to nest it or something?

current code:

{pdf(url, hash( url, concat('http://test.mysite.nl/',$node.url_alias)|ezroot(no),
 text, $node.name|wash(pdf) ) ) }

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

bisk

Tuesday 28 September 2004 1:14:22 am

Does anyone know how to nest the link in the footer, i tried looking at the nested line example:

{pdf(footer, hash( line, hash( margin, 80, thicknes, 1, size, "full" ) ) ) }

and concluded from that to nest it like this:

{pdf(footer, hash(link, hash( url, concat('http://test.mysite.nl/',$node.url_alias)|ezroot(no),
 text, $node.name|wash(pdf) ) ) ) }

But it doesn't show up at all. It also needs to be aligned left later. Any ideas?

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Kåre Køhler Høvik

Tuesday 28 September 2004 1:54:11 am

I'm sorry to say that this is not supported in eZ publish 3.4. Fucntionality for this has been added to 3.5. I'll post documentation on how to use it later today.

Kåre Høvik

bisk

Tuesday 28 September 2004 2:21:45 am

No need to be sorry and thanks for the reply.

Looking forward to 3.5.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Kåre Køhler Høvik

Thursday 30 September 2004 2:45:29 pm

Some delay, but early doc on the feature is here :
http://ez.no/ez_publish/documentation/reference/template_operators/pdf/header_block
http://ez.no/ez_publish/documentation/reference/template_operators/pdf/footer_block

Kåre Høvik

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 18 2025 22:33:40
Script start
Timing: Jan 18 2025 22:33:40
Module start 'layout'
Timing: Jan 18 2025 22:33:40
Module start 'content'
Timing: Jan 18 2025 22:33:40
Module end 'content'
Timing: Jan 18 2025 22:33:40
Script end

Main resources:

Total runtime0.8358 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 588.0313152.6406
Module start 'layout' 0.00760.0032 740.671939.4766
Module start 'content' 0.01080.8232 780.1484578.3359
Module end 'content' 0.83390.0018 1,358.484416.1406
Script end 0.8358  1,374.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4054160.0002
Check MTime0.00130.1571160.0001
Mysql Total
Database connection0.00140.168710.0014
Mysqli_queries0.769592.0713690.0112
Looping result0.00070.0800670.0000
Template Total0.797895.520.3989
Template load0.00200.235020.0010
Template processing0.795895.214320.3979
Template load and register function0.00040.044610.0004
states
state_id_array0.00170.208810.0017
state_identifier_array0.00230.274620.0011
Override
Cache load0.00160.1884300.0001
Sytem overhead
Fetch class attribute can translate value0.00060.072820.0003
Fetch class attribute name0.00130.154180.0002
XML
Image XML parsing0.00070.087920.0004
class_abstraction
Instantiating content class attribute0.00000.0027100.0000
General
dbfile0.00100.1145150.0001
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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs