10 years ago
2
Topic
Hi @all,

For some images, i would like to use LAZY LOAD (http://jquery.eisbehr.de/lazy/).
To do this, i need to change the rendeginf or IMG html tag :

<img class="lazy" data-src="/path_to/image.jpg" src="/" />

Is it possible, and where ?
I have searched in librairies/cck/... but i didn't find.


Get a Book for SEBLOD
4229 Posts
Kadministrator
10 years ago
0
Level 1
Check cck_field/upload_image plugin
10 years ago
0
Level 1
Thanks !
I imagine when SEBLOD will do an update, it will overwrite my changes.

So I opted for a simpler solution ...
In my template :
<img class="lazy" data-src="<?php echo $cck->get('photo_couverture_article')->thumb1 ?>" src="/" />
Get a Book for SEBLOD