Daniel.de Posted October 7, 2019 at 06:18 PM Share Posted October 7, 2019 at 06:18 PM Hi Alejandro, I work on some customizations. I try to load different image sizes for desktop and mobile versions in the listing_card_layout_mytheme.thtml. For the desktop version I use: $mainMediaThumb = $Media->thumb(Sanitize::getVar($listing,'MainMedia'),['listing'=> &$listing,'size'=>'303x303','mode'=>'scale','return_url'=>true,'thumbnailer'=>'url']); For Mobile: $mainMediaThumb = $Media->thumb(Sanitize::getVar($listing,'MainMedia'),['listing'=> &$listing,'size'=>'160x160','mode'=>'scale','return_url'=>true,'thumbnailer'=>'url']); JReviews is using 640x640. The images in the custom sizes will be loaded if I open the list view page and go to page 2 and back. Is there a way to load it automatically? This would be a nice feature, because I can use different image sizes for mobiles which will speed up the page. Best Regards, Daniel Link to comment
Alejandro Posted October 7, 2019 at 08:58 PM Share Posted October 7, 2019 at 08:58 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Daniel.de Posted October 7, 2019 at 09:29 PM Author Share Posted October 7, 2019 at 09:29 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted October 7, 2019 at 10:59 PM Share Posted October 7, 2019 at 10:59 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
n00bster Posted October 9, 2019 at 07:40 AM Share Posted October 9, 2019 at 07:40 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.