[Typo3-dev] enableFields + sorting
Robert Lemke
rl at robertlemke.de
Fri Jul 4 12:47:47 CEST 2003
Jan-Hendrik Heuing [netfielders] wrote:
> I just added the column sorting to tt_products, changed TCA etc...,
> BUT: we also have to change the sql-statments. As the "ORDER BY
> sorting ASC" always depends on the value sorting, I thought it might
> be a good idea to implement it in the enableFields... I know it is
> not an enableField straight away, but it would at least make sense to
> set up a function on top holding enableFields and sorting together...
Hmm, you're right, strictly speaking an ORDER BY statement shouldn't
take place in the enableFields function . So I'd prefer the latter
suggestion -
create a function which combines enableFields and your ORDER BY part.
So no big deal ...
--
robert
More information about the TYPO3-dev
mailing list