Hi,
ich schreibe gerade eine Extension in der ich IRRE nutze um für ein Spiel die Ergebnisse der einzelnen Runden einzutragen.
Ich habe eine normalisierte 1:n Relation.
Sortierung über die Buttons funktioniert.
Jetzt wollte ich die Drag & Drop Sortierung nutzen (useSortable=1). Drag geht auch, sprich ich kann die Einträge verschieben, aber das Drop geht nicht.
Kann es sein das useSortable bei 1:n nicht geht?
$TCA["tx_awmatches_matches"] = array (
"ctrl" => $TCA["tx_awmatches_matches"]["ctrl"],
"interface" => array (
"showRecordFieldList" => "hidden,opponent,opponent_tag,matchurl,league,matchdate,report,player,creator,result"
),
"feInterface" => $TCA["tx_awmatches_matches"]["feInterface"],
"columns" => array (
'hidden' => array (
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
'config' => array (
'type' => 'check',
'default' => '0'
)
),
"opponent" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_matches.opponent",
"config" => Array (
"type" => "input",
"size" => "30",
"max" => "100",
"eval" => "required,trim",
)
),
"opponent_tag" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_matches.opponent_tag",
"config" => Array (
"type" => "input",
"size" => "30",
"max" => "30",
"eval" => "trim",
)
),
"matchurl" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_matches.matchurl",
"config" => Array (
"type" => "input",
"size" => "15",
"max" => "255",
"checkbox" => "",
"eval" => "trim",
"wizards" => array(
"_PADDING" => 2,
"link" => array(
"type" => "popup",
"title" => "Link",
"icon" => "link_popup.gif",
"script" => "browse_links.php?mode=wizard",
"JSopenParams" => "height=300,width=500,status=0,menubar=0,scrollbars=1"
)
)
)
),
"league" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_matches.league",
"config" => Array (
"type" => "select",
"foreign_table" => "tx_awmatches_leagues",
"foreign_table_where" => "AND tx_awmatches_leagues.pid=###STORAGE_PID### ORDER BY tx_awmatches_leagues.uid",
"size" => 1,
"minitems" => 0,
"maxitems" => 1,
)
),
"matchdate" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_matches.matchdate",
"config" => Array (
"type" => "input",
"size" => "8",
"max" => "20",
"eval" => "date",
"checkbox" => "0",
"default" => "0"
)
),
"report" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_matches.report",
"config" => Array (
"type" => "text",
"cols" => "30",
"rows" => "5",
"wizards" => Array(
"_PADDING" => 2,
"RTE" => array(
"notNewRecords" => 1,
"RTEonly" => 1,
"type" => "script",
"title" => "Full screen Rich Text Editing|Formatteret redigering i hele vinduet",
"icon" => "wizard_rte2.gif",
"script" => "wizard_rte.php",
),
),
)
),
"player" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_matches.player",
"config" => Array (
"type" => "select",
"foreign_table" => "fe_groups",
"foreign_table_where" => "ORDER BY fe_groups.uid",
"size" => 1,
"minitems" => 0,
"maxitems" => 1,
)
),
"creator" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_matches.creator",
"config" => Array (
"type" => "input",
"size" => "30",
"max" => "80",
"eval" => "required,trim",
)
),
"result" => Array (
'exclude' => 1,
'label' => 'LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_matches.result',
'config' => Array(
'type' => 'inline',
'foreign_table' => 'tx_awmatches_results',
"foreign_field" => "parent_id",
"foreign_table_field" => "parent_table",
'maxitems' => 10,
'appearance' => Array(
'collapseAll' => 1,
'expandSingle' => 1,
'useSortable' => 1,
),
),
),
),
"types" => array (
"0" => array("showitem" => "hidden;;1;;1-1-1, opponent, opponent_tag, matchurl, league, matchdate, report;;;richtext[cut|copy|paste|formatblock|textcolor|bold|italic|underline|left|center|right|orderedlist|unorderedlist|outdent|indent|link|table|image|line|chMode]:rte_transform[mode=ts_css|imgpath=uploads/tx_awmatches/rte/], player, creator, result")
),
"palettes" => array (
"1" => array("showitem" => "")
)
);
$TCA["tx_awmatches_results"] = array (
"ctrl" => $TCA["tx_awmatches_results"]["ctrl"],
"interface" => array (
"showRecordFieldList" => "hidden,map,firstround1,firstround2"
),
"feInterface" => $TCA["tx_awmatches_results"]["feInterface"],
"columns" => array (
"parent_id" => Array (
"config" => Array (
"type" => "passthrough",
)
),
"parent_table" => Array (
"config" => Array (
"type" => "passthrough",
)
),
"map" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_results.map",
"config" => Array (
"type" => "input",
"size" => "30",
"max" => "50",
"eval" => "required,trim",
)
),
"firstround1" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_results.firstround1",
"config" => Array (
"type" => "input",
"size" => "30",
"max" => "10",
"range" => Array ("lower"=>0,"upper"=>1000),
"eval" => "required,int",
)
),
"firstround2" => Array (
"exclude" => 1,
"label" => "LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_results.firstround2",
"config" => Array (
"type" => "input",
"size" => "30",
"max" => "10",
"range" => Array ("lower"=>0,"upper"=>1000),
"eval" => "required,int",
)
),
),
"types" => array (
"0" => array("showitem" => "hidden;;1;;1-1-1, map, firstround1, firstround2")
),
"palettes" => array (
"1" => array("showitem" => "")
)
);
$TCA["tx_awmatches_matches"] = array (
"ctrl" => array (
'title' => 'LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_matches',
'label' => 'opponent',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'default_sortby' => "ORDER BY matchdate DESC",
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_awmatches_matches.gif',
),
"feInterface" => array (
"fe_admin_fieldList" => "hidden, opponent, opponent_tag, matchurl, league, matchdate, report, player, creator, result",
)
);
$TCA["tx_awmatches_results"] = array (
"ctrl" => array (
'title' => 'LLL:EXT:aw_matches/locallang_db.xml:tx_awmatches_results',
'label' => 'map',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
"sortby" => "sorting",
'delete' => 'deleted',
'enablecolumns' => array (
'disabled' => 'hidden',
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_awmatches_results.gif',
'hideTable' => 1,
),
"feInterface" => array (
"fe_admin_fieldList" => "hidden,map, firstround1, firstround2",
)
);