contao/import — Issue #2451: Comments System: allow custom fields
Author: importer
Created: 2011-11-29 19:35:42+00:00
State: open
Labels: Accepted, comments, Feature

My client wanted simply to add a Location field to capture where people are from, instead of their website (which he couldn't care about). I then realised that the Comments system is not extendible, because the Front-End part has not been written in a generic way. Perhaps we can modify the core to allow a 'feEditable' field, so the Comments.php will scan for that and construct the widgets from using the BE info, instead of the FE hard-coded manual values. This also means that we can target additional routines to specific field types, rather than specific fields, e.g. the routing to add http:// to the website field, rather make it the url type fields. Then I noticed that the language strings for the comment fields are taken from the front-end, when instead these can then be taken from the BE definitions (no need for double language names). This would be similar to the membership fields.

It also affects the listComments method, as it renders in a pre-defined way, so that should be extendible too (move website and other fields into the list comments hook).

Related issues: #2332

--- _Originally created by thyon on August 20th, 2010, at 10:35am (ID 2451)_