upload file

upload file

Wednesday 15 June 2005 5:20:57 am - 2 replies

Author Message

Arran Price

Wednesday 15 June 2005 4:08:33 pm

Hi Marina,
welcome to the steep but worthwhile learning curve for ezpublish ;-)

Files are a content class within ezpublish.
Im assuming you want something similar to the new file creation/adding facility within the admin interface but on the standard user interface instead.

What you need to do is:
* Make sure you have the roles/policies set up to allow the user(s) to create new file objects.
* Create an override template to actually bring up the default edit page for a file (look at template overrides, you may want to add a folder and override that with the correct template to add a file) If you arent sure what templates you want, start by turning on template debugging, so when you add a file through the admin interface you can see which templates it uses (and hence which ones you need to override)
* Modify the copies of the default templates (copy the templates that you want to the appropriate directory and modify them)

Hope that helps.
If you havent done the tutorial, I strongly recommend that you go through it, as it some parts that are directly related to what you are trying to achieve.

Arran

Marina Andreou

Thursday 16 June 2005 3:09:55 am

Thenks a lot....you were very helpful....

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.