Forums / General / Open Objects associated PDF directly in a same window
Jacks JNK
Tuesday 16 September 2008 3:09:41 am
Hi,
I want to Open Objects associated PDF directly in a same window, somme one may help me?
Skype : jacks_ngala
Yannick Komotir
Thursday 18 September 2008 12:36:20 am
hi Jacks,
see here http://ez.no/developer/forum/setup_design/open_pdf_directly_in_a_new_browser_window_from_link_in_oe/re_open_pdf_directly_in_a_new_browser_window_f__6
Bests regardYan
<|- Software Engineer @ eZ Publish developpers -|> @ http://twitter.com/yannixk
Thursday 18 September 2008 3:54:28 am
Hi,My problem is this :
Here is the template embed-inline
{default attribute_parameters=array()} {section show=$object.main_node_id|null|not} <a href={$object.main_node.url_alias|ezurl}>{$object.name|wash}</a> {section-else} {$object.name|wash} {/section} {/default}
this template allows me via the link to go to the page that contains my object (pdf, image ...). But I want once click on the link, it opens my item on the same window instead take me to another page
Siniša Šehović
Thursday 18 September 2008 7:17:38 am
Hi Jacks,
You can add in your template:
<a href={$object.main_node.url_alias|ezurl} target="_blank">Link</a>
S.
--- If at first you don't succeed, look in the trash for the instructions.
Thursday 18 September 2008 8:22:11 am
this will make the same thing, except that it opens a new window but my wish is to open the pdf file directly in the window
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0001 secs