[TYPO3-core] RFC: #16560: Hide mod_menu of record listing in page module if not needed
Georg Ringer
spam at ringerge.org
Wed Nov 24 20:12:09 CET 2010
This is an SVN patch request.
Type: Bug,nobrainer,cleanup
Bugtracker references:
http://bugs.typo3.org/view.php?id=16560
Branches:
Trunk,4-4,4-3 (would be nice but optional)
Problem:
There is a nice way to show records in the page module using the
following syntax:
---------------
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_myext'] =
array ('default' => array(
'MENU' => 'LLL:EXT:tx_myext/locallang_db.xml:menuDefault',
'fList' => 'title,description,image',
'icon' => TRUE));
----------------
If there is only one setting, it makes no sense to render a select box
to toggle between other settings.
Solution:
Therefore there needs to be an additional check for the size.
How to test:
use the shown example with an existing table and add it to a
ext_tables.php, clear cache and load page module. See the not needed
select box and the module with out it after applying patch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16560-modmenu.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101124/d25e93c2/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16560-modmenu.png
Type: image/png
Size: 18291 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101124/d25e93c2/attachment-0001.png>
More information about the TYPO3-team-core
mailing list