Forums / Developer / Display image about xml bloc

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

eZ debug

Timing: Jan 18 2025 05:21:34
Script start
Timing: Jan 18 2025 05:21:34
Module start 'content'
Error: eZTemplate @ extension/sevenx/design/simple/override/templates/full/forum_topic.tpl:218[28] Jan 18 2025 05:21:34
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 05:21:34
Parameter attribute is not an object
Timing: Jan 18 2025 05:21:34
Module end 'content'
Timing: Jan 18 2025 05:21:35
Script end

Main resources:

Total runtime1.0425 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.7109180.8359
Module start 'content' 0.00620.8475 768.5469662.5703
Module end 'content' 0.85370.1887 1,431.1172343.2891
Script end 1.0424  1,774.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3986210.0002
Check MTime0.00150.1424210.0001
Mysql Total
Database connection0.00070.065310.0007
Mysqli_queries0.941690.32562110.0045
Looping result0.00220.21272090.0000
Template Total1.011997.120.5059
Template load0.00210.202520.0011
Template processing1.009896.862520.5049
Template load and register function0.00010.008610.0001
states
state_id_array0.00230.225020.0012
state_identifier_array0.00120.113930.0004
Override
Cache load0.00200.1918670.0000
Sytem overhead
Fetch class attribute can translate value0.00280.267640.0007
Fetch class attribute name0.00190.183290.0002
XML
Image XML parsing0.00480.463440.0012
class_abstraction
Instantiating content class attribute0.00000.0030140.0000
General
dbfile0.00790.7550360.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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