Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

warning - Message

Important notice: This wiki is scheduled to be disabled in 2021. We are in the process of migrating content to the official documentation on docs.typo3.org. If you find information here that is missing from the official documentation, please feel free to get in contact with us on TYPO3 Slack (Channel: #t3docs-sig-wiki-migration).

Alt text for images

From TYPO3Wiki
Jump to navigation Jump to search
Content Type: HowTo.


Alt text for images

Providing alt texts for images - simple (one image only) - TEXT and IMGTEXT

tt_content.image.20.1.alttext.field = imagecaption
tt_content.textpic.20.1 < tt_content.image.20.1

Providing alt text for images - advanced (more images) - TEXT and IMGTEXT

tt_content.image.20.1.alttext.cObject = TEXT
tt_content.image.20.1.alttext.cObject {
	field = imagecaption
	listNum = 0
	listNum.splitChar = 10
	override.cObject = TEXT
	override.cObject {
		listNum.stdWrap.data = register:IMAGE_NUM
		listNum.splitChar = 10
		}
	trim = 1
	}
tt_content.textpic.20.1 < tt_content.image.20.1