Uploading many pictures at once to make gallery

Author Message

Bjarte Berntsen

Sunday 05 March 2006 8:38:51 am

Is there an easy way to do this in EZ? I suspect it is, but I am still a newbie, learning my trade, so I ask you guys out there!

BB

Betsy Gamrat

Sunday 05 March 2006 9:27:40 am

Hi -

http://www.packtpub.com has a great book: "Learning eZ publish 3", and it has some supporting scripts.

One of the scripts they have allows you to upload content into the system - the filename starts with the word "create". You'll need to add this line into their scripts for compatibility with the new versions.

<b>include_once( "kernel/classes/ezcontentobjecttreenode.php" );</b>

If you go to the publisher's site, you can go into the support area and download the scripts. You will have to give them your email (they send you a link).

I have not used it with images, but you may want to try. You should be very comfortable with PHP, and have shell access for this approach. I have used this script as the foundation for many uploads, some that were really complex.

Good luck.

Georg Franz

Sunday 05 March 2006 9:37:53 am

Hi Bjarte,

have a look at
http://ez.no/community/contribs/applications/multiplefileupload

Patrizio wrote a perfect extension to upload many images at once (e.g. one complete image folder). Just install his extension.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Bjarte Berntsen

Sunday 05 March 2006 12:24:04 pm

Have put the fileupload extension in my extension folder. How do I use it to upload pictures in plentiful?

Ɓukasz Serwatka

Monday 06 March 2006 12:02:22 am

You can use also WebDAV for mulitifle upload (Drag&Drop):
http://ez.no/products/ez_publish/demo/flash_demos/webdav_images

http://ez.no/doc/ez_publish/technical_manual/3_6/features/webdav

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Xavier Dutoit

Monday 06 March 2006 12:08:52 am

I'd second Lukasz suggestion: with webdav, you can see your website as a regular network drive. Uploading images is then as simple as drag n' drop them to the proper location.

X+

http://www.sydesy.com

Betsy Gamrat

Monday 06 March 2006 5:35:49 am

Thanks - I'll use this solution instead of my uploads.

Bjarte Berntsen

Monday 06 March 2006 6:48:05 am

Is Webdav hard to implement and use?

bb

Bertrand Dunogier

Tuesday 07 March 2006 6:20:29 am

Hi.

No, webdav is pretty easy to setup & use : http://ez.no/products/ez_publish/documentation/configuration/configuration/webdav_setup.

In my opinion it's the perfect solution to your question, I use it a lot to upload images to online galleries.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

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 19 2025 03:37:17
Script start
Timing: Jan 19 2025 03:37:17
Module start 'layout'
Timing: Jan 19 2025 03:37:17
Module start 'content'
Timing: Jan 19 2025 03:37:18
Module end 'content'
Timing: Jan 19 2025 03:37:18
Script end

Main resources:

Total runtime1.0179 sec
Peak memory usage4,096.0000 KB
Database Queries83

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 590.4141152.6406
Module start 'layout' 0.00500.0022 743.054739.4766
Module start 'content' 0.00721.0092 782.5313780.0781
Module end 'content' 1.01630.0015 1,562.609420.1250
Script end 1.0179  1,582.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3039160.0002
Check MTime0.00130.1282160.0001
Mysql Total
Database connection0.00070.063910.0007
Mysqli_queries0.939692.3055830.0113
Looping result0.00100.0961810.0000
Template Total0.992197.520.4960
Template load0.00200.200520.0010
Template processing0.990097.260820.4950
Template load and register function0.00010.010610.0001
states
state_id_array0.00070.070510.0007
state_identifier_array0.00060.059920.0003
Override
Cache load0.00180.1762450.0000
Sytem overhead
Fetch class attribute can translate value0.00080.079760.0001
Fetch class attribute name0.00140.1385150.0001
XML
Image XML parsing0.00480.471360.0008
class_abstraction
Instantiating content class attribute0.00000.0032180.0000
General
dbfile0.00290.2811480.0001
String conversion0.00000.000740.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
9content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs