Forums / General / Uploading many pictures at once to make gallery

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

eZ debug

Timing: Jan 19 2025 00:30:08
Script start
Timing: Jan 19 2025 00:30:08
Module start 'content'
Timing: Jan 19 2025 00:30:09
Module end 'content'
Timing: Jan 19 2025 00:30:09
Script end

Main resources:

Total runtime0.8149 sec
Peak memory usage4,096.0000 KB
Database Queries220

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0120 587.8359180.8203
Module start 'content' 0.01200.6716 768.6563785.1719
Module end 'content' 0.68360.1312 1,553.8281344.4375
Script end 0.8149  1,898.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5359210.0002
Check MTime0.00160.2004210.0001
Mysql Total
Database connection0.00080.100510.0008
Mysqli_queries0.718188.11182200.0033
Looping result0.00250.31292180.0000
Template Total0.776595.320.3883
Template load0.00250.309020.0013
Template processing0.774094.976020.3870
Template load and register function0.00010.014210.0001
states
state_id_array0.00140.168510.0014
state_identifier_array0.00120.145520.0006
Override
Cache load0.00230.2783450.0001
Sytem overhead
Fetch class attribute can translate value0.00110.138670.0002
Fetch class attribute name0.00100.1218150.0001
XML
Image XML parsing0.00370.457470.0005
class_abstraction
Instantiating content class attribute0.00010.0102180.0000
General
dbfile0.00270.3275590.0000
String conversion0.00000.000930.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs