Open Objects associated PDF directly in a same window

Author Message

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

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 15:57:01
Script start
Timing: Jan 18 2025 15:57:01
Module start 'layout'
Timing: Jan 18 2025 15:57:01
Module start 'content'
Timing: Jan 18 2025 15:57:02
Module end 'content'
Timing: Jan 18 2025 15:57:02
Script end

Main resources:

Total runtime0.6754 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0547152.6406
Module start 'layout' 0.00510.0034 740.695339.4766
Module start 'content' 0.00850.6655 780.1719603.8125
Module end 'content' 0.67400.0013 1,383.984412.1250
Script end 0.6753  1,396.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4517160.0002
Check MTime0.00120.1833160.0001
Mysql Total
Database connection0.00060.093910.0006
Mysqli_queries0.616491.2739650.0095
Looping result0.00060.0930630.0000
Template Total0.646295.720.3231
Template load0.00270.394920.0013
Template processing0.643595.289020.3218
Template load and register function0.00010.019410.0001
states
state_id_array0.00070.105710.0007
state_identifier_array0.00070.107220.0004
Override
Cache load0.00150.2177290.0001
Sytem overhead
Fetch class attribute can translate value0.00050.078630.0002
Fetch class attribute name0.00100.148880.0001
XML
Image XML parsing0.00210.309530.0007
class_abstraction
Instantiating content class attribute0.00010.0080100.0000
General
dbfile0.00230.3354270.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs