Creating new images while editing an article

Author Message

Thomas Nunninger

Tuesday 31 January 2006 8:02:45 am

Hi!

What I want: Users write articles about some events and upload images in a corresponding gallery. Some of the images in the gallery are also embedded in the article. Now, when a user starts editing the article he wants to add an image to the corresponding gallery in order to embedd it in the article. (Everything happens on the web page and not in the admin interface.)

I need something similar to the "upload new" function at the related objects when editing an article in admin interface. The problem of uploading new related objects is, that I need to edit the image again later if I want to add a name or caption to the image.

So my ideas where:

- extend the "upload new" function including name and caption or

- add a new image to the gallery and then come back to editing the article without interupting the process of editing the article (of course saving the draft of the article and coming back to it automatically would be ok too).

What do you think is the shortest path (except of saying: "Please, first insert the images and then add the article" - By the way: I'm thinking of extending the gallery class to serve my needs corresponding to articles and not the article class itself.)

Any ideas?

Thomas

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 11:39:33
Script start
Timing: Jan 18 2025 11:39:33
Module start 'layout'
Timing: Jan 18 2025 11:39:33
Module start 'content'
Timing: Jan 18 2025 11:39:34
Module end 'content'
Timing: Jan 18 2025 11:39:34
Script end

Main resources:

Total runtime0.8676 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1797152.6406
Module start 'layout' 0.00610.0033 741.820339.4766
Module start 'content' 0.00950.8562 781.2969440.3828
Module end 'content' 0.86570.0019 1,221.67978.1250
Script end 0.8676  1,229.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4012160.0002
Check MTime0.00160.1805160.0001
Mysql Total
Database connection0.00140.165310.0014
Mysqli_queries0.821494.6678460.0179
Looping result0.00040.0466440.0000
Template Total0.827595.420.4138
Template load0.00210.240020.0010
Template processing0.825495.133420.4127
Template load and register function0.00010.010010.0001
states
state_id_array0.00160.179210.0016
state_identifier_array0.00120.133320.0006
Override
Cache load0.00170.1902130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.093510.0008
Fetch class attribute name0.00090.103920.0005
XML
Image XML parsing0.00040.047610.0004
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00070.0783160.0000
String conversion0.00000.001240.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs