Share » Forums » General » Open Objects associated PDF directly...

Open Objects associated PDF directly in a same window

Open Objects associated PDF directly in a same window

Tuesday 16 September 2008 3:09:41 am - 4 replies

Modified on Tuesday 16 September 2008 6:20:50 am by Jacks JNK

Author Message

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 regard
Yan

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

Jacks JNK

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

Skype : jacks_ngala

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.

Jacks JNK

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

Skype : jacks_ngala

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu