How to open the pdf added to a xml bloc

Author Message

Jacks JNK

Thursday 23 October 2008 7:51:11 am

hi,

how to build the link to open the pdf added to a xml bloc by "insert an object." I can downloaded but I want it opens on the same window

Skype : jacks_ngala

Yannick Komotir

Friday 24 October 2008 3:46:57 am

hi, in the tpl of your tag try to add a condition for pdf with a link like this

<a href=/content/download/{$my_node.object.data_map.file.contentobject_id}/{$my_node.object.data_map.file.id}/file/{$my_node.object.data_map.file.content.original_filename }>{$content|wash( xhtml )}</a>

I don't remember the link of the post where i saw this

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

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 16:20:41
Script start
Timing: Jan 18 2025 16:20:41
Module start 'layout'
Timing: Jan 18 2025 16:20:41
Module start 'content'
Timing: Jan 18 2025 16:20:41
Module end 'content'
Timing: Jan 18 2025 16:20:41
Script end

Main resources:

Total runtime0.0126 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.1250152.6250
Module start 'layout' 0.00440.0026 741.750039.4453
Module start 'content' 0.00700.0038 781.195389.3672
Module end 'content' 0.01070.0019 870.562530.3047
Script end 0.0126  900.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002419.2820140.0002
Check MTime0.00118.8313140.0001
Mysql Total
Database connection0.00075.271610.0007
Mysqli_queries0.001914.812630.0006
Looping result0.00000.141610.0000
Template Total0.001612.410.0016
Template load0.00096.847610.0009
Template processing0.00075.501910.0007
Override
Cache load0.00064.639310.0006
General
dbfile0.00021.359080.0000
String conversion0.00000.062340.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