How to add additional Parameter of link field in FCE + TYPO3


For add extra parameter in link then you have to add below code in mapping time.

You can also set extra parameter from other field name.

10.typolink.additionalParams = &tit={ field:field_header }

this will not work. if you want to use other field value in parameter then you have to set “insertData” in your script code

10.typolink.additionalParams.insertData=1

Use below TypoScript Code in your “TemplaVoilà Template Mapping”

10 = TEXT
10.typolink.parameter.current = 1
10.typolink.returnLast = url
10.typolink.additionalParams = &title={ field:field_header }
10.typolink.additionalParams.insertData=1
FCE link additional parameter

FCE link additional parameter

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

If you need to set Attribute in image then please Visit here

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

Advertisements

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

How to add extra css class in FCE and also wrap link to image in FCE


 

You can also set light box in FCE. for that you need to install extension “Perfect Lightbox (perfectlightbox)”.

and you can wrap below 2 line code in FCE ( Data processing -> TypoScript Code:)

10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.width = 253
10.file.height = 150

10.stdWrap.dataWrap.wrap = <a href = "uploads/tx_templavoila/{field:field_images}" rel="lightbox[{register:tx_templavoila_pi1.parentRec.uid}-{field:uid}]" >
10.stdWrap.wrap = | </a>

OR

10.stdWrap.typolink.parameter.field = field_link

Note :
field_link : it stand for field name. image will be wrap with that field value.

FCE-image-link
If you need to set Attribute 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