Skip to content

Commit

Permalink
[DOCS] Improve documentation about change of tt_content fields config…
Browse files Browse the repository at this point in the history
…uration

In #92659 the tt_content fields `imagewidth` and `imageheight` have
been adjusted to not limit user input per default.

This improves the corresponding rst to properly describe the changes made.

Resolves: #92825
Relates: #92659
Releases: master
Change-Id: I61b1ee1fed95251d1a3be4dc9e3c996fb033aa04
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66611
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Josef Glatz <josefglatz@gmail.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Josef Glatz <josefglatz@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
o-ba authored and lolli42 committed Nov 12, 2020
1 parent 7b3ead2 commit 1e85f09
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 29 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.. include:: ../../Includes.txt

========================================================================
Important: #92659 - Change TCA configuration of imagewidth & imageheight
========================================================================

See :issue:`92659`

Description
===========

The TCA configuration for `tt_content` fields `imagewidth` and `imageheight` has
been simplified. Therefore, the following options have been removed from these
fields:

.. code-block:: php
'max' => 4,
'range' => [
'upper' => 1999
]
TYPO3 itself shouldn't limit the inputs of an editor by using a number which
was assumend to be large, 10 years ago.

If you rely on these options, please provide it in your site package by defining
it in :file:`Configuration/TCA/Overrides/tt_content.php`:

.. code-block:: php
$GLOBALS['TCA']['tt_content']['columns']['imagewidth']['config']['max'] = 4;
$GLOBALS['TCA']['tt_content']['columns']['imagewidth']['config']['range']['upper'] = 1999;
$GLOBALS['TCA']['tt_content']['columns']['imageheight']['config']['max'] = 4;
$GLOBALS['TCA']['tt_content']['columns']['imageheight']['config']['range']['upper'] = 1999;
.. index:: Backend, TCA, ext:frontend

0 comments on commit 1e85f09

Please sign in to comment.