[Typo3-dev] IMAGE.alttext RC2 possible bug
Robert Lemke
rl at robertlemke.de
Mon Apr 5 12:33:19 CEST 2004
> >>We've migrated a TYPO-site to 3.6.0.RC2 and we have found a possible
> >>issue. We create some images with IMAGE TS content objects, but using
> >>IMAGE "alttext" attribute does not set the <img alt="..."> parameter
> >>correctly. It just inserts an empty alt="" (null string).
I fixed that in the current CVS version.
> Can we also add an alt text field to image and textpic like the caption.
> This is something I've had to create a little extension to do but that
> doesn't make sense. It's not much code and very easy to do but really
> users should always be forced to add alt attributes.
I still think that this is the job of an extension like the
dmc_image_alttext plugin. Such an extension only has to create two new
fields and add some TypoScript to use them.
BTW, this is the TypoScript template I used for testing the alttext and
the new titletext property:
page >
page = PAGE
page.typeNum = 0
page.10 = TEXT
page.10.value = TypoScript alt & title test
page.20 = IMAGE
page.20 {
file = vibiemme-1*.jpg
file.width = 200
altText = IMAGE Obj altText
titleText = IMAGE Obj titleText
}
page.30 = IMGTEXT
page.30 {
text.10 = TEXT
text.10.value = Some dummy surrounding text
altText = IMGTEXT Alt Text - default
titleText = IMGTEXT Title Text - default
imgList = vibiemme-1.jpg, vibiemme-2.jpg, vibiemme-1.jpg
imgPath = uploads/tf/
imgObjNum = 1||2||3
1 {
file.import.current = 1
file.width = 200
}
2 {
file.import.current = 1
file.width = 100
altText = IMGTEXT Alt Text - Second IMGobj
titleText = IMGTEXT Title Text - Second IMGobj
}
3 {
file.import.current = 1
file.width = 150
altText.cObject = COA
altText.cObject {
10 = TEXT
10.value = IMGTEXT Alt Text COA - Third IMGobj
20 = HTML
20.value = <b>some HTML</b>
}
titleText < .altText
titleText.10.value = IMGTEXT Title Text COA - Third IMGobj
}
}
--
robert
"They placed me on this earth without a manual.
And I dare to say, I’m doing just fine without ;)"
More information about the TYPO3-dev
mailing list