[TYPO3-core] RFC: Bug 5331: Remove the caption wrap on images if no caption is set

Oliver Hader oh at inpublica.de
Sat Jul 7 14:17:03 CEST 2007


This is a SVN patch request.

Problem:
W3C validators show a warning if images without a caption are used. Even
if the caption is empty/unset the wrap creates an empty tag which leads
to the mentioned warning - e.g. "<dd class="csc-textpic-caption"></dd>"

Solution:
Add a "required" flag to static TypoScript of "CSS Styled Content" that
prevents from wrapping the caption part if no content is set:
tt_content.image.20.rendering.dl.caption.required=1

Comments:
Thanks to Georg Ringer for providing the bugfix.

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

Branches: TYPO3_4-1 & Trunk


olly
-- 
Oliver Hader
http://inpublica.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005331.patch
Type: text/x-patch
Size: 770 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070707/e5bcc88f/attachment.bin 


More information about the TYPO3-team-core mailing list