[TYPO3-core] RFC #16065: Bugfix - New layout and labels for tt_content show palette labels without content

JoH asenau info at cybercraft.de
Wed Oct 20 14:37:16 CEST 2010


This is a SVN patch request.

Type: Bugfix

http://bugs.typo3.org/view.php?id=160365

Branches: trunk

Problem:
After 0016031 palette labels are displayed, although there is no option in the palette.
So you see a palette "headline", but no option below. This does not make sense; remove the palette label in that case!

Solution:
I tracked it down to the palette "item" --linebreak--
If there is a --linebreak-- left after removing excluded fields, the palette still gets rendered, since count($parts) will still be true.
Attached patch solves this problem by checking if $parts contains only --linebreak-- item(s) and removing the palette completely as well for this case.

Cheers

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: palette_headers.diff
Type: application/octet-stream
Size: 3128 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101020/f233a9c1/attachment.obj>


More information about the TYPO3-team-core mailing list