Wrapping image based on width… pure TypoScript

following issue: images should be wrapped with various class parameter (or div, or whatever) based on its width. And it should be solved only per TypoScript…

hmmm… quite a difficult one, don’t you think? well, you know what… I solved it… 😀

let’s get the code.. the following code will put a class (content_main_img_small, content_main_img_medium, content_main_img_big) in the img tag of image or text w/ image content element.

feel free to modify this.

Leave a Reply

Your email address will not be published. Required fields are marked *