Article with few uploads

Author Message

Softriva .com

Wednesday 02 August 2006 11:36:31 pm

My clients wants an article class with few uploads (.doc, .ppt, etc.)

The number of uploaded files is not known i.e. an article might have one, two, etc or none to upload.

What is the best approach to do so?

Coulibaly Ibrahim

Thursday 03 August 2006 3:09:41 am

Hi,

see this article.

http://ez.no/community/forum/developer/fetch_main_node_id_in_relation
it introduce the use of objects relations and helps us to fetch all your related object.

George Michaelides

Thursday 03 August 2006 5:27:20 am

extend the article class with an "object relations" attribute and amend your template to loop round these and output them. This way you can relate other types in addition to files.

An easier approach would be to upload files into the media gallery and link to them through the online editor. I recommend the first as it takes care of the linking at the template level

www.jegodesigns.com
www.jegodesigns.eu

Paul Borgermans

Thursday 03 August 2006 11:39:54 am

Hi

An approach we use here is to present an upload form which stores files as child objects. That makes ti also easier to apply /implement roles and policies. The article needs to be published before though.

hth

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 21 2025 04:15:03
Script start
Timing: Jan 21 2025 04:15:03
Module start 'layout'
Timing: Jan 21 2025 04:15:03
Module start 'content'
Timing: Jan 21 2025 04:15:03
Module end 'content'
Timing: Jan 21 2025 04:15:03
Script end

Main resources:

Total runtime0.0164 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9141151.2109
Module start 'layout' 0.00560.0024 739.125036.6484
Module start 'content' 0.00800.0067 775.773490.1406
Module end 'content' 0.01470.0017 865.914133.9922
Script end 0.0163  899.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.8586140.0002
Check MTime0.00116.8837140.0001
Mysql Total
Database connection0.00095.796810.0009
Mysqli_queries0.002112.885630.0007
Looping result0.00000.072810.0000
Template Total0.00116.910.0011
Template load0.00084.967410.0008
Template processing0.00031.941010.0003
Override
Cache load0.00063.564810.0006
General
dbfile0.00031.597680.0000
String conversion0.00000.061140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs