[TYPO3-core] RFC #16465: Bug: TCE forms incorrectly render optgroup tags with icons

Susanne Moog typo3 at susannemoog.de
Fri Dec 17 18:56:13 CET 2010


On 18.11.2010 12:27, Bastian Waidelich wrote:
> Hi again,
> 
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=16463
> 
> Branches:
> trunk
> 
> Problem:
> TYPO3 allows us to specify an icon that is displayed in front of options
> in BE selectors (this is currently only supported by Mozilla based
> browsers AFAIK).
> Additionally it's possible to group option tags by inserting a
> "---div---" item, resulting in a <optgroup> tag.
> Unfortunately the styling of the optgroups is currently broken, which
> makes them unusable in Mozilla (See attached snapshots).
> 
> Solution:
> Create a new method optgroupTagStyle() that sets the correct style
> attributes for optgroup tags similar to optionTagStyle(). See attached
> patch.
> 
> Steps to reproduce:
> Put following lines around the registration of a plugin to your ext_tables:
> 
> $TCA['tt_content']['columns']['list_type']['config']['items'][] =
> array('group header', '--div--', t3lib_extMgm::extRelPath($_EXTKEY) .
> 'ext_icon.gif');
> 
> // t3lib_extMgm::addPlugin(...);
> 
> $TCA['tt_content']['columns']['list_type']['config']['items'][] =
> array('', '--div--');

+1 by reading and testing (and comparing to the optionTagStyle function)

Susanne

-- 
What's worth the price is always worth the fight
Every second counts 'cause there's no second try

TYPO3 Core Team Member


More information about the TYPO3-team-core mailing list