Length of description / IMG size in mail

1 year 8 months ago #1 by Boris
Hiho, thx for that tool - very helpfull!

Two questions I would like to solve / to change on a certain project:

- how can I change the number of letters for the description picked up via custom blocks?
50 in my case it's way to short ... would be great to be able to adjust this up od down ...

- how (where) can I reduce the size of the images within the sent mail?
Via CSS in the list shown up on the site ... no problem.
But where to put a hand on for the list-presentation within a mail ...
In may case the pictures within the article are just there as they need to be.
I just want to reduce the width the pictures are placed in an email.

Thx in advance!

Please Log in or Create an account to join the conversation.

1 year 8 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic Length of description / IMG size in mail
Hello Boris and thank you for posting!

1. The custom blocks save all of the available text of the description. However, only 50 characters are presented for a better view.
You can change that by creating a simple template override of the mx_item.php file.

2. This can also be accomplished using a template override, and depending on the item's component, you can either use default_item.php or mx_item.php.
You can write something like this, in place of the existing image.
<img src="<?php print $item->image; ?>" class="myshortlist article_image_intro" alt="<?php print $item->alt; ?>" <?php if ($helper->isEmail) { print 'width="50" style="float:left"'; } ?>/>

Note the $helper->isEmail property, which is true when the layout is loaded from the email.
Make sure to override all component items that you use.
Thanks again!

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros