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

Advertisements

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