[TYPO3-core] RFC: Bug 4943 Redundant comma in label_alt_force
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Sat Feb 10 22:02:30 CET 2007
Thomas Hempel schrieb:
> This is a SVN patch request
>
> Type: Bugfix
>
> Description:
> If there ist activate the "label_alt_force" in tt_content [ctrl] with eg
> this label_alt "title, subtitle", and the subtitle is empty, the result
> in db_list.php is
>
> MyTitle,
>
> Is the title and the subtitle empty the result is only a comma
> ,
>
> Solution:
> I wrote a patch that solves this particular problem. See attached patch.
>
>
> Remark:
> Another problem still resists. If the "normal" label is empty the result
> will be something like
>
> ,subtitle
>
> And if the you have more than two label parts and one in the middle is
> empty the column is removed completely from the string what can be a bit
> confusing for the user. E.g.:
>
> title,field1,field2
> title,field2
> title,field3
You could add a "-" or "*" as fillers:
title,-,field2
title,-,-,field2
But I don't think that's that great. +1 for the patch as it is.
Masi
More information about the TYPO3-team-core
mailing list