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.