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

Oliver Hader oh at inpublica.de
Wed Jul 11 15:28:21 CEST 2007


FYI: Committed to SVN:
* TYPO3_4-1 (rev. 2395)
* Trunk (rev. 2396)

olly


Oliver Hader schrieb:
> 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
-- 
Oliver Hader
http://inpublica.de/


More information about the TYPO3-team-core mailing list