Forums / Setup & design / Upload files in forum topic and replay

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential 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.