Commit 1e85f091 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Christian Kuhn
Browse files

[DOCS] Improve documentation about change of tt_content fields configuration

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: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarJosef Glatz <josefglatz@gmail.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarJosef Glatz <josefglatz@gmail.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 7b3ead26
.. include:: ../../Includes.txt
=============================================================
Important: #92659 - Change in TCA of imagewidth & imageheight
=============================================================
See :issue:`92659`
Description
===========
The TCA of the fields `imagewidth` and `imageheight` of `tt_content` has been simplified. The following options have been removed:
.. code-block:: php
'max' => 4,
'range' => [
'lower' => 0,
],
TYPO3 itself shouldn't limit the inputs of an editor by using a number which was large 10 years ago.
If you need a custom range, please provide it in your site package and set it in :file:`Configuration/TCA/Overrides.php` with:
.. code-block:: php
$GLOBALS['TCA']['tt_content']['columns']['imagewidth']['config']['range']['upper'] = 1999;
.. index:: Backend, TCA, ext:frontend
.. 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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment