Project

General

Profile

Actions

Feature #16417

closed

Bidirectional MM relations including foreign an local sorting

Added by Nikolas Hagelstein over 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-07-31
Due date:
% Done:

0%

Estimated time:
PHP Version:
4
Tags:
Complexity:
Sprint Focus:

Description

Bidierctionality can be solved using the BI relations plugin but having only one sorting field makes things inconsistent. I suggest implementation of bidirectional mm relations to the core andsupply of a local and foreign sorting field.

(issue imported from #M3959)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #16518: MM relations should be editable from both sides of the relationClosedSebastian Kurfuerst2006-09-01

Actions
Actions #1

Updated by Franz Holzinger about 18 years ago

I could provide a solution to this introducing a new key field which gives the index field names and order of the mm table.

$TCA['tx_extensionname_tables_mm'] = Array (
'ctrl' => Array (
'title' => 'LLL:EXT:extensionname/locallang_db.php:tx_extensionname_tables_mm', ## WOP:[tables]1[title]
'label' => 'title', ## WOP:[tables]1[header_field]
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'key' => 'uid_local,uid_foreign',
'sortby' => 'sorting', ## WOP:[tables]1[sorting]
'delete' => 'deleted', ## WOP:[tables]1[add_deleted]
'enablecolumns' => Array ( ## WOP:[tables]1[add_hidden] / [tables]1[add_starttime] / [tables]1[add_endtime] / [tables]1[add_access]
'disabled' => 'hidden', ## WOP:[tables]1[add_hidden]
'starttime' => 'starttime', ## WOP:[tables]1[add_starttime]
'endtime' => 'endtime', ## WOP:[tables]1[add_endtime]
'fe_group' => 'fe_group', ## WOP:[tables]1[add_access]
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_extensionname_tables.gif',
),
'feInterface' => Array (
'fe_admin_fieldList' => 'hidden, starttime, endtime, fe_group, min_size_id, max_size_id, additional mediumtext',
)
);

A concept like this is needed anyways to make mm tables editable in the backend and independant from the field names 'uid_local' and 'uid_foreign'.

Actions #2

Updated by Ingmar Schlecht about 18 years ago

Bidirectional MM relations including foreign and local sorting is now in trunk for 4.1. See #16518.

Actions

Also available in: Atom PDF