Share » Forums » Setup & design » Upload files in forum topic and replay

Upload files in forum topic and replay

Upload files in forum topic and replay

Sunday 09 December 2007 4:31:16 am - 3 replies

Author Message

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.

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

36 542 Users on board!

Forums menu