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

Main resources:

Total runtime0.0210 sec
Peak memory usage4,096.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.6875180.8438
Module start 'content' 0.00760.0052 768.531393.7422
Module end 'content' 0.01280.0080 862.273470.7031
Script end 0.0208  932.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002310.9989120.0002
Check MTime0.00115.1377120.0001
Mysql Total
Database connection0.00094.199110.0009
Mysqli_queries0.005023.754340.0012
Looping result0.00000.114920.0000
Template Total0.007636.110.0076
Template load0.00094.142210.0009
Template processing0.006731.903310.0067
Override
Cache load0.00062.748610.0006
General
dbfile0.00199.0956100.0002
String conversion0.00000.029630.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs