Understanding how ez Publish does galleries

Author Message

Werner Strydom

Saturday 09 April 2005 9:50:06 am

I've created a ez Publish website [http://www.bloudraak.com/] with a gallery [http://www.bloudraak.com/index.php/photography]. I am also using an application called IMatch [http://www.photools.com/] to manage my photos, of which some, may go into my gallery. So I'm trying to understand how the gallery module works, so I can integrate the two applications and get the desired effect. If you don't mind, please point me to information which can help. I know C#, C++, Java and Visual Basic.

I'm looking at writing an IMatch script that
1) Transform the image for the web by scaling it, adding a border, copyright notice and creating a thumbnail.
2) Create a gallery if it doesn't exist
3) Update images if it was added before, or add it

My goal is to manipulate the database directly using MySQL/ODBC. What tables do I need to reference; what do I need to be carefull of?

1) Find if a gallery with an id exists?
2) Add a gallery and determine its id
3) Find an image in a gallery
4) Update the image in the gallery
5) Add an image to the gallery; settings its thumbnail and large image
6) Remove the image from the gallery
7) Where do I FTP the thumbnail and large image?

If I can use SOAP or XMLRPC, instead of ODBC, then so much better. I have approx 1200 photos, which have full IPTC information, a description and name. So the batch upload doesn't work for me as that information will not be displayed on the website.

May I suggest that "ez Publish" documents all the webservices it offers, just like Microsoft SharePoint does it. It will ease integration from other platforms.

Ekkehard Dörre

Saturday 09 April 2005 3:28:55 pm

<i>1) Transform the image for the web by scaling it, adding a border, copyright notice and creating a thumbnail. </i>
possible with ez
you can look in image.ini

IPTC: Exif export is possible in ez
You can use all pear packages via
http://ez.no/community/contribs/3rd_party/extension_ezpowerlib_pubsvn
http://pear.php.net/package/Image_IPTC/

or more directly via image.ini and
http://imagemagick.org/script/formats.php#embedded

Upload via webdav with automatic exif extraction.
http://ez.no/ez_publish/documentation/configuration/configuration/webdav_setup

SOAP is possible, too, search:
http://ez.no/content/search?SearchText=SOAP

ez can handle 6000 images without problems, 100.000 should be possible, too.
Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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

Main resources:

Total runtime1.2607 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 589.1797152.6406
Module start 'layout' 0.00920.0034 741.820339.4766
Module start 'content' 0.01271.2466 781.2969536.0234
Module end 'content' 1.25920.0014 1,317.320312.1250
Script end 1.2607  1,329.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2690160.0002
Check MTime0.00130.1059160.0001
Mysql Total
Database connection0.00160.125610.0016
Mysqli_queries1.205395.6038540.0223
Looping result0.00060.0438520.0000
Template Total1.224497.120.6122
Template load0.00190.150420.0009
Template processing1.222596.973020.6113
Template load and register function0.00020.016610.0002
states
state_id_array0.00090.068110.0009
state_identifier_array0.00130.107120.0007
Override
Cache load0.00160.1257350.0000
Sytem overhead
Fetch class attribute can translate value0.00070.053920.0003
Fetch class attribute name0.00230.181630.0008
XML
Image XML parsing0.00050.042420.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00080.0670160.0001
String conversion0.00000.000840.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs