Announcement

Collapse
No announcement yet.

Cant seem to override product image size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cant seem to override product image size

    for a second template i created to display secondary products, i would like a thumnail size image.

    I marked the product image size <!-- NETQUOTEVAR:IMAGEHEIGHT --><!-- NETQUOTEVAR:IMAGEWIDTH -->,

    and all images displayed as expected, the 150x150 they actually are,

    then in the second temp that i want to display a thumb i added <img src="NETQUOTEVAR:PRODUCTIMAGE" height="75" width="75" />

    this does not work. how come...?
    Gary Simpson
    www.tba
    Replacement blades, drills and cutters for your power tools.....

    #2
    NETQUOTEVAR:PRODUCTIMAGE is a call to expand Act_ProductImage.html.

    Put Act_ProductImage.html back to its original code and try replacing (in your Product Template) NETQUOTEVAR:PRODUCTIMAGE
    with

    <!-- NETQUOTEVAR:PRODUCTIMAGE -->
    <IMG SRC="NETQUOTEVAR:IMAGEFILE" width=75>

    PS If you leave out the height=75 then you will get properly scaled 75px wide images regardless of the size / aspect ratio of the image. If you know all your images are square then it's best to put in the height field as it helps browsers lay out the page quicker.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      thanks again norman

      worked fine, todays quest to create a different image for the front page every time the page loads, (random better, will settle for in an ordered fasion if it is much less work) off to source some info on this....!
      Gary Simpson
      www.tba
      Replacement blades, drills and cutters for your power tools.....

      Comment


        #4
        I did a patch that does just that a week or two ago. It's on the Forum at http://community.actinic.com/showthread.php?t=16995. See item #17.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          can i do exactly the same for the section image

          the abouve fix referencing the imagefile does not work for section templates,
          is there a variation on this..?
          Gary Simpson
          www.tba
          Replacement blades, drills and cutters for your power tools.....

          Comment


            #6
            Which of the 2 above posts are you referring to?
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              sorry norman

              ive made another section template and im in the same situation wanting to insert a thumb image but cant find a way to size the section image down from my regular 150x150 in other sections
              Gary Simpson
              www.tba
              Replacement blades, drills and cutters for your power tools.....

              Comment


                #8
                The NETQUOTEVAR:IMAGEFILE is only valid within Act_SectionNavImage.html and cannot be used within custom SectionLine templates. You'll have to do the obvious and use smaller images for these Section links.

                Alternatively (and it's a horrible hack) would be to use JavaScript to alter the sizes. E.g. In your custom SectionLine template replace

                NETQUOTEVAR:SECTIONIMAGE

                with

                <script type="text/javascript">
                <!--
                document.write('NETQUOTEVAR:SECTIONIMAGE'.replace(/=\d+/g, "=25"));
                //-->
                </script>

                and change that 25 to the size you want for the width and height.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  thanks will resize images

                  wiil probably never change them anyway so ill only have to do it once.
                  my only concern was that adding more and more images every time i do any changes(and im talking over a long period) will slow the upload time down ,
                  i dont really know how much affect this may have, i guess theres sites out there with a lot more images than i will ever have...
                  Gary Simpson
                  www.tba
                  Replacement blades, drills and cutters for your power tools.....

                  Comment


                    #10
                    Adding more images, products, etc shouldn't have any sigificant impact on upload times as Actinic only uploads new images, and changed pages on an Upload. Existing images and pages that haven't changed are simply left in place.

                    It's only Refresh that re-uploads everything and that isn't usually ever needed unless you have server problems.
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      still puzzled

                      resized an image to 60x60 and placed it in new section temp, now its getting stretched out to 150x150 dont know where it could be getting this call,
                      act_sectionimage is origonal, and the new temp looks ok to me....

                      <!-- SectionLine HTML begin -->
                      <!-- Insert HTML for the beginning of a section title -->
                      <!-- NETQUOTEVAR:SECTIONIMAGE NETQUOTEVAR:SECTIONTEXT -->
                      <link href="actinic.css" rel="stylesheet" type="text/css" />




                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                      <td>&nbsp;</td>
                      </tr>
                      </table>
                      <!-- Insert HTML for the end of a section title -->
                      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="thinred2">
                      <tr>
                      <td width="60" height="60">NETQUOTEVAR:SECTIONIMAGE </td>
                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr bgcolor="#CDEEFF">
                      <td width="15" height="30"></td>
                      <td><p><A HREF="NETQUOTEVAR:SECTIONLINK"><span class="lightblueheader">NETQUOTEVAR:SECTIONNAME</span></A></p></td>
                      <td>&nbsp;</td>
                      </tr>
                      <tr bgcolor="#ECF9FF">
                      <td height="30">&nbsp;</td>
                      <td><A HREF="NETQUOTEVAR:SECTIONLINK"><img src="button_view_section.gif" width="125" height="22" border="0" /></A></td>
                      <td>&nbsp;</td>
                      </tr>
                      </table></td>
                      </tr>
                      </table>
                      NETQUOTEVAR:NEXT
                      <!-- SectionLine HTML end -->


                      you can see this minus the image file here http://www.newblades.co.uk/acatalog/...s_by_size.html
                      Gary Simpson
                      www.tba
                      Replacement blades, drills and cutters for your power tools.....

                      Comment


                        #12
                        sorry fixed

                        had edited act_sectionNavimage, and forgot

                        dare say im now going to find out why i edited this file wreckon im going to find a lot of oversized images now...
                        Gary Simpson
                        www.tba
                        Replacement blades, drills and cutters for your power tools.....

                        Comment

                        Working...
                        X