CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #32402

Make selectfields configurable

Added by Jochen Rieger over 1 year ago.

Status:New Start date:2011-12-08
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
TYPO3 Version:4.5 Tags:
PHP Version: Reporter:
Has patch:No
Votes: 0

Description

The great hooks in comments make it possible to add fields to the template etc. Only one problem: You cannot SELECT the field from DB because the field list to be fetched is hardcoded:

$rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,approved,crdate,firstname,lastname,homepage,location,email,content', ...

It would be nice to have this configurable ... I think a TS option would be enough, such as:

plugin.tx_comments_pi1.fieldList = uid,approved,crdate,firstname,lastname, ...

An alternative could be a hook... but maybe that's too much for a flat list of fields...?

Also available in: Atom PDF