problems with products (altered)

Author Message

David Eglin

Sunday 12 October 2003 8:29:09 am

Hi all.

Ok, so I'm new to ezpublish, and have to say it's great. I am planning to use it to run a website designed to share skin files at www.macish.org . There will be news, a couple of basic forums, and the main section will be for file downloads.

I decided to start off by editing the product class already in ezpublish to my own needs. Fine... I added an "author" field, (By the way, how do I get the title to display the title and author when a user is browsing?), and all the other fields i needed. Problems with 2 things, though...

1) Images

Due to the nature of the files, I will be needing the ability to upload and display a preview image of the file. Uploading the image is fine... I added an Image field into the class, and uploaded my image. However, It wont display, either in the admin editing screen where you can delete the picture or change it... or in the page display. (In the page display, do I need to add in an extra bit in the template to handle the image?). Can't work out why the image wouldn't be displaying in the admin interface though... My guess is something to do with the file renaming? I notice that any image i upload gets changed to php*****.jpg.... any ideas?

2) Files

Files upload fine... But if I upload a compressed file with an unusual extension (like a *.obpack file for Stardock Object Bar), ezpublish changes the file extension to a .zip file! I want people to be able to sirect install these skins from the server, and I dont want to have to put all the files in .zips before i upload them just to stop this happening... Is there any way to stop ezpublish from changing the file extension?

Cheers people :)

Many thanks

David Eglin
Creative Director, Macish.org

Bjørn Kaarstein

Wednesday 15 October 2003 2:37:25 am

To get the title of your product, you could use {$node.data_map.content.title}. If you wan't to see the attributes available, try {$node|attribute(show)}

images: This might be a problem with rights. You need write rights to the var/storage directory of ezpublish.

Can't help you with the upload I'm afraid.

Regards Bjørn

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

Main resources:

Total runtime0.7228 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.0057 590.2734152.6250
Module start 'layout' 0.00570.0039 742.898439.4609
Module start 'content' 0.00950.7118 782.3594460.2656
Module end 'content' 0.72130.0014 1,242.62508.1563
Script end 0.7227  1,250.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00510.7062160.0003
Check MTime0.00230.3129160.0001
Mysql Total
Database connection0.00110.153610.0011
Mysqli_queries0.675893.4967540.0125
Looping result0.00040.0602520.0000
Template Total0.692095.720.3460
Template load0.00210.287220.0010
Template processing0.689995.452920.3450
Template load and register function0.00020.025010.0002
states
state_id_array0.00100.145310.0010
state_identifier_array0.00070.102420.0004
Override
Cache load0.00170.2363190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.070220.0003
Fetch class attribute name0.00130.184520.0007
XML
Image XML parsing0.00030.039320.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00060.0878100.0001
String conversion0.00000.001340.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs