[TYPO3-core] RFC: Feature #6710: Use optgroups in selectorboxes

Ingmar Schlecht ingmar at typo3.org
Wed Nov 14 13:42:12 CET 2007


This is an SVN patch request.

Type: New feature / Code cleanup

Bugtracker references:
http://bugs.typo3.org/view.php?id=6710

Branch: trunk

Problem:
The page and content type selectors now group their options using
--div-- dividers. TCEForm renders them as optically grouped bunches of
options, but doesn't use the optgroup tag, which is meant for that.

Solution:
Use the optgroup tag.

The patch is easy to review, as the else {} part is exactly what was
there before, and only if a divider should be rendered which is
if(!strcmp($p[1],'--div--')) now the optgroup tag is rendered.

Notes:
Tested with FF2, IE6, IE7 and Konqueror, whereas Konqueror still doesn't
perform well, but at least better than with the old way of grouping.

cheers
Ingmar

-- 
Ingmar Schlecht
TYPO3 Association Active Member
-------------- next part --------------
A non-text attachment was scrubbed...
Name: optgroup-for-selectorboxes.patch
Type: text/x-diff
Size: 2993 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071114/3ddbaaa7/attachment.patch 


More information about the TYPO3-team-core mailing list