Upload files in forum topic and replay

Author Message

Francisco Rubio

Sunday 09 December 2007 4:31:16 am

I would like to allow users to upload files on forums topic and replay, but don´t know how to do it.
I´m a new user of ez publis, so don´t know very well how to use the role/policy structure.

Please help me!

Jon Staines

Monday 10 December 2007 7:21:42 am

Assuming that you trust your forum users enough to allow them to upload files. The easiest way I can think of is to just add one or more file attributes to the forum_reply class. This way you wouldn't have to do anything to the user permissions.

You will need to edit the templates that are used for creating and viewing the forum_replies. I think they are extension/ezwebin/design/ezwebin/override/templates/full/forum_topic.tpl and extension/ezwebin/design/ezwebin/override/templates/edit/forum_reply.tpl. Just add in a part for the new variable that you made.

Francisco Rubio

Tuesday 11 December 2007 12:17:25 am

And what exactly do I have to change in the code? And why the forum topic in the /full/ directory and the reply in the edit directory?
I´m very new at this and find it a little difficult. Please give me some more help

Jon Staines

Tuesday 11 December 2007 3:34:14 am

I wouldn't suggest doing this until you are a lot more familiar with how eZ Publish works. Read through some of the documentation on this site and learn how the template system works. Once you have tried a few examples and overridden some templates it will be straight forward.

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