[TYPO3-dam] Bug in EXT dam_ttcontent - creates CSS error?

André Spindler typo3 at andre-spindler.de
Fri Sep 21 02:32:10 CEST 2012


Hello list.

I just have subscribed to this list as I think there is a bug in
dam_ttcontent. But I wasn't able to create a ticket on forge and I haven't
found an email address neither in the extension manual nor in the extension
itself. So I hope I'm right here ;-)

My problem:
Extension dam_ttcontent introduces "hidden" a new position for the caption.
Very useful if your editors fill out the meta fields in DAM, but you don't
want captions to be displayed in some special content elements.
But if there is a position explicit given, the sourrounding tag is created
with the stdWrap option "wrapAlign". But wrapAlign doesn't check it's
attribute for valid values, at least up to TYPO3 4.6.10 (I haven't got
running a TYPO3 4.7 with DAM yet) . If the value ist "hidden", you get
somethin like the following HTML code: <div
style="text-align:hidden;">Caption</div>
And that's not very nice.

To get rid of this annoying error the typoscript for setting up the captions
has to be fixed.
A solution that works for me:

tt_content.image.20.caption {
	1.wrapAlign >
	1.outerWrap.stdWrap.cObject = CASE
	1.outerWrap.stdWrap.cObject {
		key.field = imagecaption_position
		if.isTrue.field = imagecaption_position

		hidden = TEXT
		hidden.value = style="display:none;"

		default = TEXT
		default.field = imagecaption_position
		default.wrap = style="text-align:|;"

		stdWrap.noTrimWrap = |<div |>|
		stdWrap.append = TEXT
		stdWrap.append.value = |</div>
	}
	2.wrapAlign >
	2.outerWrap < .1.outerWrap
}

Could anyone confirm my problem?

Thanks,
André Spindler


_____________________________________________________________________
André Spindler
Schmidstraße 21 - 85399 Hallbergmoos
Telefon: 0811/9986774 - andre at andre-spindler.de



More information about the TYPO3-project-dam mailing list