Announcement

Collapse
No announcement yet.

Bug report: ProductImageFileName variable returns differing values.

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

    Bug report: ProductImageFileName variable returns differing values.

    Using production release GIKA, demo site database.

    If I use

    <actinic:variable name="ProductImageFileName" />

    in a product layout, then on page preview I get the value

    x-sneakers.jpg

    whereas the same variable in Standard Product Image layout returns

    ../x-sneakers.jpg
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    #2
    Norman - I'm having trouble reproducing this. When I put:

    <img src="<actinic:variable name="ProductImageFileName" />" />

    into my standard product layout and then carried out an offline preview, it became:

    <img src="../x-tee-basic.jpg" />

    This looks correct to me.

    How strange.

    If you wanted to send me a snapshot to cdicken at actinic.co.uk I can check it out with your data.

    Comment


      #3
      Hi, Chris

      What I'm trying to do is get the same value as used for the source of the product image into a product template.

      I'm not using

      <img src="<actinic:variable name="ProductImageFileName" />" />

      but simply e.g.

      Hello <actinic:variable name="ProductImageFileName" /> World!

      It's in this instance that the "../" bit is missing.

      This may not actually be an Actinic bug. Perhaps it's simply the replacement of the src='...' by a relative path to allow the file to be found when Previewing.

      However it's a different sort of behaviour from V7 where NETQUOTEVAR:IMAGEFILE would include the "../" if used in a product template when Previewing and omit it if live.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Yes you are right - but apparently this is working as designed.

        The only thing I can suggest is adding the following code before your variable:

        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e">../</actinic:block>

        This will insert a '../' but only if the store is in preview mode.

        Comment

        Working...
        X