Forums / Setup & design / Problem with article

Problem with article

Author Message

nicolem cgrgr

Saturday 07 February 2009 4:04:29 pm

Hi,

I have a class article. And each article has one or more related PDF.
My problem is how can I do this ? And how can I specify where the uploaded file will be stored on the server ?

Thanks for your help.

[url=http://www.andysautosport.com/body_kits.html]Body Kits[/url]
[url=http://www.bestcarfinder.co.uk/make/Audi-car-leasing.aspx]Audi Leasing[/url]

Fátima Chapri

Sunday 15 February 2009 12:52:53 pm

Hi Nicolem,

1. If you want to publish a file with related pdf's, you can add the pdf as a "file" (there is a content class named "file" that stores all type of files like: pdf, word, ....). And after that, create your article and create an object relation with your pdf file previously created.

2. There is an other way to do so, that is creating a new content class, that has the capacity to store files. To do so on the admin interface, you must go to:
configuration>classes>content>new class
Have a look at the technical manual to see available data types you have. (go to reference/datatypes).

If you have too many articles to publish that have pdf related objects, than you can chose the 2nd option. But if the number of articles you have is too small, Than it would be better to use the 1st one.

eZ debug

Timing: Jan 18 2025 21:10:28
Script start
Timing: Jan 18 2025 21:10:28
Module start 'content'
Timing: Jan 18 2025 21:10:28
Module end 'content'
Timing: Jan 18 2025 21:10:28
Script end

Main resources:

Total runtime0.0158 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.0391180.8438
Module start 'content' 0.00670.0045 769.882893.7422
Module end 'content' 0.01120.0044 863.625070.7031
Script end 0.0156  934.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002314.8420120.0002
Check MTime0.00117.1527120.0001
Mysql Total
Database connection0.00127.328010.0012
Mysqli_queries0.002918.506040.0007
Looping result0.00000.096720.0000
Template Total0.004126.110.0041
Template load0.00085.122710.0008
Template processing0.003320.927510.0033
Override
Cache load0.00063.620210.0006
General
dbfile0.00032.1797100.0000
String conversion0.00000.031730.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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