How to add title and alter attribute in image or in link of FCE + TYPO3


 
If you need title and alt in image then you hvae Select “Not Mapped” element in Data element ( Templavoila Mapping of FCE ).

Then after you have to select Set field name ( field_title ) in image ( Data processing -> TypoScript Code:)
Add below two line in your typoscript code

10.altText.field = field_title 
10.titleText.field = field_title 

If title is empty in FCE and you need extra field name as title then you can set like

10.altText.field = field_title  // field_alt_tag

And you need to set fixed width and height image then you can set below typoscript

10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.width = 179
10.file.height = 39

This is the final Typoscript OF Image in FCE.

10 = IMAGE
10.altText.field = field_alt_tag // field_title
10.titleText.field = field_title_tag // field_title
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.width = 179
10.file.height = 39

FCE

If you need to set lightbox functionality in Image then please Visit here.

If you want additional Parameter of link field in FCE then please Visit here

If you have any query then feel free to contact me at Jainish Senjaliya

Advertisements

One thought on “How to add title and alter attribute in image or in link of FCE + TYPO3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s