Forums / Setup & design / pdf footer, link back to original page

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

eZ debug

Timing: Jan 20 2025 03:29:06
Script start
Timing: Jan 20 2025 03:29:06
Module start 'content'
Timing: Jan 20 2025 03:29:06
Module end 'content'
Timing: Jan 20 2025 03:29:06
Script end

Main resources:

Total runtime0.0162 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.0703180.8281
Module start 'content' 0.00550.0047 769.8984102.0234
Module end 'content' 0.01030.0058 871.921978.7031
Script end 0.0161  950.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002012.6365120.0002
Check MTime0.00106.2518120.0001
Mysql Total
Database connection0.00074.369510.0007
Mysqli_queries0.002616.382040.0007
Looping result0.00000.100320.0000
Template Total0.005534.110.0055
Template load0.00095.270810.0009
Template processing0.004728.832510.0047
Override
Cache load0.00063.631910.0006
General
dbfile0.00127.3995100.0001
String conversion0.00000.031030.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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