Bug #59523
closed
Content Element "Special Menus"
Added by Martin Weisbach over 10 years ago.
Updated about 7 years ago.
Category:
Backend User Interface
Description
Using the Content Element "Special Menus" in this case the "Menu of selected pages" the number of pages which can be added is limited to 22. If you try to add number 23 you get the message: "The fields marked with a yellow exclamation mark are not yet correctly filled in. Please complete them properly."
I hoped that this might be fixed now in 6.2 but it's still there. For me this is no bigger problem, adding additional records to the "Menu of selected pages" can be done in the database directly, but this is not a solution to offer to my customers.
The field in database (tt_content/pages) is a TINYTEXT, this means it can hold up to 255 characters.
If you take (in a bigger websites) page identifiers with 4 digits, this means 5 characters with the comma to be stored, you get 255 / 5 = 51
So this value could probably be raised a bit however I wonder if it really makes sense UX-wise. If you need to raise it for your own requirements you may do that in typo3conf/extTables.php
:
$GLOBALS['TCA']['tt_content']['columns']['page']['config']['maxitems'] = 50;
I already tried that but the yellow exclamation marks is still there and so the content element can not be saved in the backend ... I would change the field in the database directly to text or something so that my customer is able to work on that stuff by himself - but I don't know if it would have any side effects to change that database field to something else?
Probably already noticed, but Xaviers code example contains a little typo. Has to be "pages" instead of "page":
$TCA['tt_content']['columns']['pages']['config']['maxitems'] = 50;
Hi Marc, no, I have to admit I haven't noticed that at all and - tada - now it works! Thanks a lot for the hint!
- Target version changed from next-patchlevel to 7.4 (Backend)
- Status changed from New 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 http://review.typo3.org/39532
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39532
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39532
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/39532
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF