Forums / General / How to open the pdf added to a xml bloc

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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