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.

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 00:36:18
Script start
Timing: Jan 19 2025 00:36:18
Module start 'layout'
Timing: Jan 19 2025 00:36:18
Module start 'content'
Timing: Jan 19 2025 00:36:20
Module end 'content'
Timing: Jan 19 2025 00:36:20
Script end

Main resources:

Total runtime1.5292 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 589.0391152.6250
Module start 'layout' 0.00570.0044 741.664139.4453
Module start 'content' 0.01011.5176 781.1094487.6563
Module end 'content' 1.52770.0015 1,268.76568.1719
Script end 1.5292  1,276.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2514160.0002
Check MTime0.00180.1204160.0001
Mysql Total
Database connection0.00070.042810.0007
Mysqli_queries1.482496.9387540.0275
Looping result0.00090.0617520.0000
Template Total1.485997.220.7430
Template load0.00210.138620.0011
Template processing1.483897.029120.7419
Template load and register function0.00040.029010.0004
states
state_id_array0.00200.131510.0020
state_identifier_array0.00320.209120.0016
Override
Cache load0.00170.1126140.0001
Sytem overhead
Fetch class attribute can translate value0.00120.078920.0006
Fetch class attribute name0.00150.099020.0008
XML
Image XML parsing0.00020.014520.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00080.0498100.0001
String conversion0.00000.000740.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
4content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs