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

Steffen Kamper steffen at sk-typo3.de
Wed Nov 14 14:27:57 CET 2007


"Ingmar Schlecht" <ingmar at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1195044135.32007.typo3-team-core at lists.netfielders.de...
> 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
>
direct +1.

I was thinking of this possibility while looking to the User Access-select.

Whats about adding class-option as well? When I see the new select for page 
types it would be nice with more optgroups to have e.g. different colors.

vg  Steffen




More information about the TYPO3-team-core mailing list