Announcement

Collapse
No announcement yet.

New product image template

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

    New product image template

    Hi,
    If I want to create my own version of Act_ProductImage.html eg Act_MyProductImage.html how do I get Actinic to recognise this as a template?

    I have created a copy of Act_ProductImage.html and changed it so that the image has a border just so I can see the change. Then I've made a copy of Act_ProductLine.html and replaced NETQUOTEVAR:PRODUCTIMAGE with CUSTOMVAR:MYPRODUCTIMAGE.

    The CUSTOMVAR:MYPRODUCTIMAGE has been set globally (in Design/Options/SiteDefaults) to Act_MyProductImage.html and the 'file' and 'use content' boxes have been checked. When I do a preview I see my image with a border around it as expected (so I know that my new template is being used) but the ALT text says NETQUOTEVAR:ALTERNATETEXT as though the NETQUOTEVAR hasn't been interpreted correctly.

    Do I need to tell Actinic that this file is a template to get it to interpret the NETQUOTEVAR's in it correctly?

    #2
    The ALT text comes from the short product description as part of the NQV:PRODUCTIMAGE - why do you need to use the CUSTOMVAR:IMAGE and not the NQV:PRODUCTIMAGE?


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Because I want an alternative product display that I will only use on some products.

      Comment


        #4
        Oh sorry - reread the OP - this is a global image in the product line.

        Try using something like

        <img src="CUSTOMVAR:MYPRODUCTIMAGE" width="100" height="100" alt="NETQUOTEVAR:PRODUCTDESCRIPTION>


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          Thanks but it's not the code I'm having trouble with. It's getting actinic to fill in the NETQUOTEVARs in my new template Act_MyProductImage.

          Comment


            #6
            So the border in the new Act_Image is showing but not the ALT text?


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment


              #7
              yeah, the border is showing but the alt text still says NETQUOTEVAR:ALTERNATETEXT as though the NETQUOTEVAR hasn't been recognised.

              Comment


                #8
                I am getting the same results


                Bikster
                SellerDeck Designs and Responsive Themes

                Comment


                  #9
                  Strangely, it seems to know what NETQUOTEVAR:IMAGEHEIGHT and NETQUOTEVAR:IMAGEWIDTH are but not NETQUOTEVAR:ALTERNATETEXT...

                  Comment


                    #10
                    What code do you have in the Act_MYProductImage?


                    Bikster
                    SellerDeck Designs and Responsive Themes

                    Comment


                      #11
                      It's exactly the same as Act_ProductImage.html but with border set to 1.

                      <!-- ProductImage HTML begin -->
                      <!-- This file is used to build the product image markup. -->

                      <IMG SRC="NETQUOTEVAR:IMAGEFILE"
                      ALT="NETQUOTEVAR:ALTERNATETEXT"
                      ALIGN="CENTER"
                      BORDER=1
                      NETQUOTEVAR:IMAGEHEIGHT
                      NETQUOTEVAR:IMAGEWIDTH
                      NETQUOTEVAR:OTHERIMAGEMARKUP>

                      <!-- This file is used to build the product image markup. -->
                      <!-- ProductImage HTML end -->

                      Comment


                        #12
                        are you seeing the actual product image as well as the border?


                        Bikster
                        SellerDeck Designs and Responsive Themes

                        Comment


                          #13
                          yes the image is correct

                          Comment


                            #14
                            All you should have to do is use the select button and navigate to your template file (which is, of course, saved in the site1 directory) from the product definition page in Actinic (see attached).
                            Attached Files
                            Bill
                            www.egyptianwonders.co.uk
                            Text directoryWorldwide Actinic(TM) shops
                            BC Ness Solutions Support services, custom software
                            Registered Microsoft™ Partner (ISV)
                            VoIP UK: 0131 208 0605
                            Located: Alexandria, EGYPT

                            Comment


                              #15
                              I've done exactly that. That's not where the problem lies. The problem is in the next level down...

                              To use your example... your Act_BCDarkPapyrus...ProductLine.html template references NETQUOTEVAR:PRODUCTIMAGE. This netquotevar relates to another template file Act_ProductImage.html. I'm trying to create a custom version of this file so that I can display some product images differently to others. The border being a simple example. It all seems to work OK except that the NETQUOTEVAR:ALTERNATETEXT in my new template doesn't get recognised as a netquotevar. Instead of getting the alt text from the Short Description I get "NETQUOTEVAR:ALTERNATETEXT".

                              Comment

                              Working...
                              X