Aug 28
James Sheffer Problems with Encode_Smart tag in Lasso 8.5 ?
Aug 28, 2018; 14:21
James Sheffer
Problems with Encode_Smart tag in Lasso 8.5 ?
I’ve run into a strange problem on an existing site using Lasso 8.5:
I have a simple 3 column table - Image on the left, text and price in the middle and button on the right. The problem is with the image to the left - Each image is 125px X 125px at 72dpi but some display at different sizes. The page is using Bootstrap 3 with an image responsive tag. If I remove that, the images show correctly but are no longer responsive.
The reason I bring up on the lasso list is that, in the second <td></td> tag, I have an Encode_Smart tag for displaying text from MySQL.
If I remove the Encode_Smart tag and just add dummy text, everything works fine, the images are all the same size and responsive. Has anyone seen this with the Encode_smart tag before?
Below is a code snipped of the code
(this is all in an Iterate tag):
<table class="cartmain”>
<tr>
<td align="left" valign="top"><img class="img-responsive" src="client_images/thumbs/[if(($a->get(3)->size)<3)]noimage.jpg[else][$a->get(3)][/if]" alt="[$a->get(2)]" border="0”>
</td>
<td style="padding: 10px;"><br /><span class="font_14_bold">[$a->get(2)]</span><br /><br /><span class="font_14">[Encode_Smart($a->get(4))]</span> <br /> <span class="font_14_blue_bold"> [if($a->get(7))] [$a->get(7)] [else] $[math_round((var('itemprice')),0.01)] [/if] </span>
</td>
<td style="padding: 10px; text-align:right;"> <div align="right"><a href="product_detail.lasso?id=[$a->get(1)]"><button type="submit" class="btn btn-primary">More Details</button></a></div>
</td
</tr>
</table>
-------------------
Any help in getting the images to all display the same size AND be responsive would be a great help!!
James Sheffer
james@higherpowered.com <mailto:james@higherpowered.com>
www.higherpowered.com <http://www.higherpowered.com/>
469-256-0268
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Aug 28
Tim Taplin Re: Problems with Encode_Smart tag in Lasso 8.5 ?
Aug 28, 2018; 15:44
Tim Taplin
Re: Problems with Encode_Smart tag in Lasso 8.5 ?
Aug 28
James Sheffer Re: Problems with Encode_Smart tag in Lasso 8.5 ?
Aug 28, 2018; 14:51
James Sheffer
Re: Problems with Encode_Smart tag in Lasso 8.5 ?
Aug 28
Mason Miller Re: Problems with Encode_Smart tag in Lasso 8.5 ?
Aug 28, 2018; 18:29
Mason Miller
Re: Problems with Encode_Smart tag in Lasso 8.5 ?
Aug 29
XL Cordemans Re: Problems with Encode_Smart tag in Lasso 8.5 ?
Aug 29, 2018; 00:28
XL Cordemans
Re: Problems with Encode_Smart tag in Lasso 8.5 ?