Display image about xml bloc

Author Message

Emilien MIOSSEC

Thursday 25 February 2010 9:03:29 am

Hello,Sorry for my bad english...In my classe I have a Content Block XML but when i use this in front:

{attribute_view_gui attribute=$node.data_map.contenu_inferieur}

My image add with TinyMCE Editor not display in front, why ?

Best regards

--------------------------------------------
Emilien MIOSSEC
Systalium - Developper
FRANCE (Dijon)
Systalium is eZ Silver Partner

Nicolas Pastorino

Thursday 25 February 2010 9:31:37 am

Hi Emilien,

At the location where your image is supposed to be, do you see a link, the name of which of the image object's name or alternative text ? The issue might be that you are embedding the image 'inline' (ie 'embed-inline' instead of 'embed').

Let us know,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Emilien MIOSSEC

Friday 26 February 2010 12:49:19 am

Hi Nicolas,

At the location where my image is suposed to be, I see this :

<div class=""/>

For information when I edit content "frondend" or "backend" i see my images in TinyMCE editor. I don't realy understand what you say about "(ie 'embed-inline' instead of 'embed')". Where i can define this ?

Thanks a lot and i'm very sorry for my english not very perfect :-)

Best regards,
Cheers

--------------------------------------------
Emilien MIOSSEC
Systalium - Developper
FRANCE (Dijon)
Systalium is eZ Silver Partner

Nicolas Pastorino

Friday 26 February 2010 2:34:48 am

"

At the location where my image is suposed to be, I see this :

<div class=""/>

For information when I edit content "frondend" or "backend" i see my images in TinyMCE editor. I don't realy understand what you say about "(ie 'embed-inline' instead of 'embed')". Where i can define this ?

"

Your english is good Emilien, see, we are talking together :)

Concerning your problem (empty div) do you have any template error in the debug output ? In order to display the debug output, add in an override for site.ini:

[DebugSettings]
DebugOutput=enabled

[TemplateSettings]
Debug=enabled
ShowXHTMLCode=disabled
ShowUsedTemplates=enabled
DevelopmentMode=enabled

[ContentSettings]
ViewCaching=disabled

Secondly, this is what i mentioned (embed-inline vs embed image docking ) :

I had the issue a few times that using embed-inline did not properly show the image in the front end.
Let us know,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Nicolas Pastorino

Friday 26 February 2010 2:38:47 am

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Emilien MIOSSEC

Friday 26 February 2010 5:04:45 am

Hi Nicolas,

Thanks for my english :-)

So I clean my cache and use debug but i don't see everything which not allowed display my image.

When i change embed or inline i don't have any modification, my image don't display on frontend.

I'm angry for this and my customer of course :-)

Best regards,

Cheers

--------------------------------------------
Emilien MIOSSEC
Systalium - Developper
FRANCE (Dijon)
Systalium is eZ Silver Partner

Emilien MIOSSEC

Friday 26 February 2010 5:24:34 am

Hi Nicolas,

Okay i know that's my problème for see the image i must select full or line in visualisation, but you know a method to force this. For my customer don't have to force this ?

But, why then i select "embed" this not work corect in frontend ...

[EDIT]

Sorry for my many edits but I progress when I debug the image in frontend call this template :
design/standard/templates/content/datatype/view/ezxmltags/embed.tpl

I look this and i test any solution can be display THE image :-)

[/EDIT]

[RE-EDIT]

I have allready override the embed.tpl with this :

{section name=ContentObjectAttribute loop=$object.contentobject_attributes}
{attribute_view_gui attribute=$ContentObjectAttribute:item}
{/section}

but i have the name of the image at left, ggrrrr ..

[/RE-EDIT]

Best regards

--------------------------------------------
Emilien MIOSSEC
Systalium - Developper
FRANCE (Dijon)
Systalium is eZ Silver Partner

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 10:19:01
Script start
Timing: Jan 18 2025 10:19:01
Module start 'layout'
Timing: Jan 18 2025 10:19:01
Module start 'content'
Error: eZTemplate @ extension/sevenx/design/simple/override/templates/full/forum_topic.tpl:218[28] Jan 18 2025 10:19:02
No such attribute for array(3): body
Choose one of following: name, caption, image
Warning: eZTemplate:attribute_view_gui @ extension/sevenx/design/simple/override/templates/full/forum_topic.tpl:218[28] Jan 18 2025 10:19:02
Parameter attribute is not an object
Timing: Jan 18 2025 10:19:02
Module end 'content'
Timing: Jan 18 2025 10:19:02
Script end

Main resources:

Total runtime0.8130 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.9141152.6250
Module start 'layout' 0.00790.0037 740.539139.4453
Module start 'content' 0.01160.8001 779.9844657.4922
Module end 'content' 0.81170.0013 1,437.476618.7031
Script end 0.8130  1,456.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5338160.0003
Check MTime0.00170.2109160.0001
Mysql Total
Database connection0.00140.167010.0014
Mysqli_queries0.717888.2954740.0097
Looping result0.00080.0963720.0000
Template Total0.760193.520.3801
Template load0.00300.371120.0015
Template processing0.757193.126420.3786
Template load and register function0.00010.011810.0001
states
state_id_array0.00300.370020.0015
state_identifier_array0.00140.168730.0005
Override
Cache load0.00280.3400670.0000
Sytem overhead
Fetch class attribute can translate value0.00110.133930.0004
Fetch class attribute name0.00160.196590.0002
XML
Image XML parsing0.00510.626330.0017
class_abstraction
Instantiating content class attribute0.00000.0039140.0000
General
dbfile0.00660.8137250.0003
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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/embed.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/embed.tplEdit templateOverride template
1content/view/embed.tplembed/image.tplextension/sevenx/design/simple/override/templates/embed/image.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 11

Time used to render debug report: 0.0002 secs