Task #78383
closedTCA: Streamline field order and position for recurring fields
100%
Description
User story¶
When I edit a record, I would like to have the same options on similar places. So I have a chance to have a valid expectation where to find the option.
Description of the issue¶
In T3 there are some recurring field definitions shared by a lot of records (core records and extension records). These fields are mostly defined in TCA[‘crtl’]- e.g. disabled, descriptionColumn. These fields should have a standard position and order.
Example Field enablecolumns.disabled¶
Record | Tab | Field position |
---|---|---|
Page | Access | Visibility – Page - Disable |
Backendusergroup | General | Disable |
Backenduser | General | Disable |
Webseite language | Access | Disable |
Action | Access | Deactivated |
System News | General | Disable |
Scheduler task group | --- | Disable |
Template | General | Disable |
Content element | Access | Visibility – Content Element - Disable |
Website User | General | Disable |
Backend layout | Access | Disable: |
Domain | --- | Disable |
Alternative Page Language | Access | Visiblity – Page - Disable |
Category | General | Hide (next to Language in palette) |
Record Collection | General | Hide (next to Language in palette) |
Abbreviation | --- | Hide |
Suggested solution¶
Streamline the field order and position for all core records. Add missing fields where necessary. Document the order and position to encourage extension authors to change the field order accordingly.
Suggested field order and position¶
Legend: / means palette
Tab: General (must be the first tab)
- type / (main sub selection e.g. colPos)
- label / (label specific options)
- label_alt (in case these fields are related to the label)
Other tabs defined by the specific record
Tab: Language
- language_field / transOrigPointerField
- other language or translation related options
Tab: Access
- disabled / (hide in menu)
- starttime / endtime
- fe_group / fe_admin_lock
- adminlock
- other access related options
Tab: Categories
- categories (not to select parent categories; only to categorize a record)
Tab: Notes
- descriptionColumn
Updated by Frans Saris about 8 years ago
Somekind of API to add these fields to your own TCA would be great. That would help all extension authors and make it much easier to streamline the backed and also to customize it again. 1 place that defines the configuration of all the general fields, pallettes and tabs + column order and search.
Updated by Daniel Windloff about 8 years ago
Yes, it's nasty to write on every own extension table the same configuration etc. It would be a good starting point for an API to benefit the situation.
I would suggest applying changes in the following order:
- Streamline core fields order and position
- Document field position and order
- Add a (misused) unit/functional test or something else to ensure the position and order for core records in the future
- Introduce an API to make it easy to add those fields consistently
Updated by Gerrit Code Review about 8 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review about 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review about 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review about 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review about 8 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review about 8 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review about 8 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review about 8 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Daniel Windloff about 8 years ago
Hi,
I had a proposal on gerrit. The main difference I made is the movement of the language related fields (in comperison to tt_content or page).
I think it is not longer necessary to have them in the first tab, as the translation is mainly done by wizards and the current (language) status is also avaliable through the module menu.
Best regards,
Daniel
Updated by Gerrit Code Review about 8 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review about 8 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Gerrit Code Review almost 8 years ago
Patch set 22 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50364
Updated by Daniel Windloff almost 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d03e9d679816f2e0e435894373f180a23ed37446.
Updated by Christian Kuhn almost 7 years ago
- Related to Bug #83974: Miscellaneous palette in pages table has invalid showitem string added
Updated by Christian Kuhn about 2 months ago
- Related to Task #105240: Remove "visible fields" functional tests added