so, ein Stück weiter.
In der Datenbank hatte ich bisher übersehen, dass in der Tablee ...Teilnehmer der Wert für "Platzierungen" überall "0" ist. Er sollte aber die Anzahl der Platzierungen jedes Teilnehmers beinhalten.
Bei den Turnieren funktioniert das auch.
tca.php
$TCA['tx_jreranking_domain_model_tournament'] = array(
'ctrl' => $TCA['tx_jreranking_domain_model_tournament']['ctrl'],
'interface' => array(
'showRecordFieldList' => 'hidden,season,location,tournament_date,manager,positions'
),
'types' => array(
'1' => array('showitem' => 'hidden,season,location,tournament_date,manager,positions')
),
'columns' => array(
...
'positions' => array(
'exclude' => 1,
'label' => 'LLL:EXT:jre_ranking/Resources/Private/Language/locallang_db.xml:tx_jreranking_domain_model_tournament.positions',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_jreranking_domain_model_position',
'foreign_field' => 'tournament',
'maxitems' => 9999,
'appearance' => array(
'newRecordLinkPosition' => 'bottom',
'collapseAll' => 0,
'expandSingle' => 1
)
)
)
)
);
$TCA['tx_jreranking_domain_model_person'] = array(
'ctrl' => $TCA['tx_jreranking_domain_model_person']['ctrl'],
'interface' => array(
'showRecordFieldList' => 'hidden, firstname, lastname, onlinename, sex, is_member'
),
'types' => array(
'1' => array('showitem' => 'hidden, firstname, lastname, onlinename, sex, is_member')
),
'columns' => array(
...
'positions' => array(
'exclude' => 1,
'label' => 'LLL:EXT:jre_ranking/Resources/Private/Language/locallang_db.xml:tx_jreranking_domain_model_tournament.positions',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_jreranking_domain_model_position',
'foreign_field' => 'person',
'maxitems' => 9999,
'appearance' => array(
'newRecordLinkPosition' => 'bottom',
'collapseAll' => 0,
'expandSingle' => 1
)
)
)
)
);
$TCA['tx_jreranking_domain_model_position'] = array(
'ctrl' => $TCA['tx_jreranking_domain_model_position']['ctrl'],
'interface' => array(
'showRecordFieldList' => 'hidden, person, tournament, number, points'
),
'columns' => array(
...
'person' => array(
'exclude' => 1,
'label' => 'LLL:EXT:jre_ranking/Resources/Private/Language/locallang_db.xml:tx_jreranking_domain_model_person',
'config' => array(
'type' => 'select',
'foreign_table' => 'tx_jreranking_domain_model_person',
'foreign_table_where' => 'AND tx_jreranking_domain_model_person.pid=###CURRENT_PID###',
'items' => array(
array('--none--', 0)
),
'wizards' => Array(
'_PADDING' => 1,
'_VERTICAL' => 0,
'edit' => Array(
'type' => 'popup',
'title' => 'Edit',
'script' => 'wizard_edit.php',
'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1,
'JSopenParams' => 'height=650,width=650,status=0,menubar=0,scrollbars=1'
),
'add' => Array(
'type' => 'script',
'title' => 'Create new',
'icon' => 'add.gif',
'params' => Array(
'table'=>'tx_jreranking_domain_model_person',
'pid' => '###CURRENT_PID###',
'setValue' => 'prepend'
),
'script' => 'wizard_add.php'
)
)
)
),
'tournament' => array(
'config' => array(
'type' => 'passthrough'
)
)
);
Bin aber nicht sicher, ob das bei dem jetzigen Problem relevant ist? Denn in "Platzierungen" steht ja die Referenz zum Teilnehmer drin...