[TYPO3-german] Überschreiben einer TCA-Definition erzeugt einen SQL-Fehler

Gregor Hermens gregor at a-mazing.de
Fri Nov 18 16:42:42 CET 2016


Hallo Johannes,

Johannes C. Laxander wrote:

> Nun habe ich in
> Configuration/TCA/Overrides/tx_jobfair_domain_model_job.php diese
> Deefinition geändert / überschrieben mit:
> 
> $GLOBALS['TCA']['tx_jobfair_domain_model_job']['ctrl'] = array(
>  'title' => 'Meine Tabelle',
> 'label' => 'zip',
> 'label_alt' => 'location,job_title',
> 'label_alt_force' => 1,
> 'sortby' => 'zip,job_title',
> 'searchFields' =>
> 'job_title,location,short_job_description,job_type,region,contact,zip',
> );

du hast das Feld 'sortby' fehlinterpretiert:

https://docs.typo3.org/typo3cms/TCAReference/Reference/Ctrl/Index.html#sortby

Zitat: "The field should not be editable by the user since the TCE will 
manage the content automatically in order to manage the order of records."

Für deine Zwecke ist das Feld 'default_sortby' gedacht.

hth
Gruß,
Gregor
-- 
http://www.a-mazing.de/   |   Certified TYPO3 Integrator



More information about the TYPO3-german mailing list