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.