Giorgi625 VIP
Total posts: 655
21 Dec 2016 18:26

For a relation field I use tempalte from depot Portfolio Column Click here to link...

I used this tempalte on my sites old version where it worked fine and was resizing iamge autoamticaly. Click here to link... look a girl image below video which is repeating 4 times. But When I use it on new site I get this Click here to link... again iamges below video. As you can see images are not resized and users see only part of image and it is weird. I did not made any changes to template so I thinks there is some problem but I can't figure out what it is. So is there solution to manualy give width and height to image field in this tempaltes php file? This is how iamge field is called in this template:

<div class="image ribbon-wrapper-green">  

                    <?php if($item->featured):?>
                         <div class="ribbon-green"><?php echo $fetaured_text;?></div>
                    <?php else: ?>
                         <div class="ribbon-empty">.</div>
                    <?php endif; ?>
                         <div class="image-wrapper">
                        <?php 
                                foreach ($img_field as $key1 => $value1) {       
                                    if(isset($item->fields_by_id[$value1]))
                                    echo $item->fields_by_id[$value1]->result;
                                }
                            ?>
                         </div>
                       </div>

Last Modified: 23 Dec 2016

Comments have been disabled for this article and works only in read only mode.

Giorgi625 VIP
Total posts: 655
22 Dec 2016 06:35

finally got what I wanted by adding to joomla tempaltes custom css file img-polaroid class, but is there any other solution? because main image for record also has same class so if I will need any specific changes so this iamge will be edited also, so I want to have own class for that smal iamges.


Sergey
Total posts: 13,748
23 Dec 2016 05:27

Look into output template of the field. There is image resize API method. You can create copy of that template and insert there your own values.

Powered by Cobalt