Forums / Suggestions / Article image source

Article image source

Author Message

Olaf Fichtner

Tuesday 22 June 2010 12:25:55 am

It would be nice if the same selection dialog used in OE for inserting an image could be used for the main article image.

One thing I like about eZP is the way content is considered an object that can be inserted into other content, moved etc. So I put images into the media library and then use those in articles. If I want to replace an image with a better one, I will do just that, and even in multilingual sites the image will be updated in all language instances of all articles containing it.

With the current procedure however, I need to separately upload an image, and if I want to replace it after I already created translations, I need to replace it in every language version of every article I used it in.

I think this might make things more convenient for authors...

André R.

Tuesday 22 June 2010 1:18:54 am

This is in our backlog (or should be, I'll check).

And the proper way to solve this is to move away from using the media / image / file datatypes directly in content related content classes like article to use object relation datatype. But at the same time we would need to make the interface for object relation more ajaxed like OE interface and add possibility to limit allowed classes like you can in object relationlist datatype.

This will mean image attribute and similar attributes will be able to reuse content in the media library correctly and let us have an clearer separation between content and media

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Olaf Fichtner

Wednesday 23 June 2010 12:34:10 am

That's good to hear. But I'm not sure if I understand you correctly. Since I do need articles in multiple languages, I usually upload an image to media/images, give it there title and caption for every language, and then insert the image through the OE "insert image" dialog.

So, are you saying it would be better to use the "insert object" dialog instead? I only just noticed it also includes media files... :-P

eZ debug

Timing: Jan 15 2025 02:52:33
Script start
Timing: Jan 15 2025 02:52:33
Module start 'content'
Timing: Jan 15 2025 02:52:33
Module end 'content'
Timing: Jan 15 2025 02:52:34
Script end

Main resources:

Total runtime1.0853 sec
Peak memory usage6,144.0000 KB
Database Queries187

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 686.2891214.8047
Module start 'content' 0.00550.9003 901.09381,807.2109
Module end 'content' 0.90580.1795 2,708.3047633.1641
Script end 1.0852  3,341.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00710.6521210.0003
Check MTime0.00160.1506210.0001
Mysql Total
Database connection0.00070.063410.0007
Mysqli_queries1.006292.71361870.0054
Looping result0.00160.14911840.0000
Template Total1.056197.320.5281
Template load0.00410.374320.0020
Template processing1.052096.934120.5260
Template load and register function0.00100.093310.0010
states
state_id_array0.00070.063910.0007
state_identifier_array0.00090.086920.0005
Override
Cache load0.00370.3389150.0002
Sytem overhead
Fetch class attribute can translate value0.00090.082030.0003
Fetch class attribute name0.00230.214140.0006
XML
Image XML parsing0.00090.083830.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00090.0822220.0000
String conversion0.00000.000530.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs