Project

General

Profile

Actions

Bug #56812

open

TCA fields without positioning added to last tab, not "Extended" tab

Added by Mathias Brodala about 10 years ago. Updated about 8 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2014-03-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

TCA fields added via ExtensionManagementUtility::addToAllTCAtypes are appended to the showitem list of all types if no explicit positioning (e.g. after:title) has been requested.

By default this appends the fields to the "Extended" tab which is present by default and ready to receive all fields which are simply appended.

However, if one adds a new tab via --div-- without explicit positioning with some fields, all unrelated fields without explicit positioning are now appended to this tab instead. The resulting showitem portion which makes the issue clear:

--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended, --div--;LLL:EXT:myext/locallang_db.xml:mytab, tx_myext_myfield;;;;1-1-1, unrelated_field

The new tab with the field tx_myext_myfield was simply appended to the showitem list, thus preventing the "Extended" tab from being the last. The unrelated_field is now placed in the new tab.

A temporary fix is to set a explicit position for the newly added tab; this ensures that the tab and its fields are not simply appended and leaves the "Extended" tab on the last position.

The real fix however would involve explicitely placing all fields without explicit positioning in the "Extended" tab. This way arbitrary tabs could be appended without unrelated fields showing up in them.

This issue affects all TYPO3 CMS versions.

Actions #1

Updated by Mathias Brodala almost 10 years ago

  • Target version changed from 6.2.0 to next-patchlevel
Actions #2

Updated by Felix Kopp over 9 years ago

  • Status changed from New to Needs Feedback
  • Parent task set to #62836
  • TYPO3 Version changed from 6.2 to 7
  • PHP Version deleted (5.3)
Actions #3

Updated by Alexander Opitz over 9 years ago

  • TYPO3 Version changed from 7 to 6.2

Please do not change the version number an issue startet to exists.

Actions #4

Updated by Mathias Brodala over 9 years ago

What feedback do you need? I think the original description is quite descriptive. Is there something missing?

Actions #5

Updated by Alexander Opitz almost 9 years ago

  • Status changed from Needs Feedback to New

Reset Feedback, as there was no question given.

Actions #6

Updated by Benni Mack over 8 years ago

  • Status changed from New to Needs Feedback

The real problem is that this "Extended" tab is actually just a workaround to not add anything non-specific to the last tab.

So I think this should be the way to go:
- Remove all default Extended tabs in tt_content of the core (or wherever this is used currently)
- Add a special placeholder for everything that was added without positioning, and any tabs that are added BEFORE that placeholder.

Does that make sense?

Actions #7

Updated by Benni Mack over 8 years ago

  • Parent task deleted (#62836)
Actions #8

Updated by Stephan Brun over 8 years ago

Since there are sys_categories this "workaround" fails. The the non-specific/non-positioned fields are now on the tab "Categories".

Actions #9

Updated by Mathias Schreiber over 8 years ago

  • Target version deleted (next-patchlevel)
Actions #10

Updated by Alexander Opitz about 8 years ago

  • Status changed from Needs Feedback to New
Actions

Also available in: Atom PDF