Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: Hyperlink for product image

  1. #1
    rcvjmv is offline Junior Member
    Join Date
    Nov 2008
    Posts
    26

    Default Hyperlink for product image

    Is there anyway to attach a hyperlink to an image. I am putting up some training videos and I would like for the product image to link to the "swf" file I have stored. I have a hyperlink that works fine in the product description, but it would make more sense if the customer would just be able to click on the image and the training video would start. Thanks for any help

  2. #2
    webopius is offline Senior Member
    Join Date
    Nov 2008
    Location
    London, UK
    Posts
    440

    Default

    Hi

    I think what you need can be done using something like this in your XML template code:

    Code:
    <a>
       <xsl:attribute name="href">
          <xsl:value-of select="LINK TO YOUR SWF FILE"/>
        </xsl:attribute>
        <img>
           <xsl:attribute name="src">
              <xsl:value-of select="aspdnsf:LookupImage(ProductID, 'product', 'medium', 1)"/>
           </xsl:attribute>
         </img>
    </a>
    You can of course use a variable in the 'LINK TO SWF FILE' section so that your SWF file link is specific to the product id being viewed.

  3. #3
    rcvjmv is offline Junior Member
    Join Date
    Nov 2008
    Posts
    26

    Default I have been unable to locate the proper template

    I cannot find the template which you refer. Would you please give me the exact name? I thought this would be a bit easier???

  4. #4
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    Product pages are generated by XML packages, which are in the XmlPackages folder. The one you're using can be found by looking at the 'Display Format XML Package' attribute in Product Manager (in the admin site). Open up that package, find where we add the image to the page, and add in your extra code.

  5. #5
    MSD is offline Member
    Join Date
    Sep 2009
    Location
    EST
    Posts
    57

    Default Dynamic link listing template

    Ha ... I am a fool... just got it.

    <a href="{aspdnsf:ProductandEntityLink(ProductID, SEName, $EntityID, $EntityName, 0)}">image here</a>

    MSD
    Started V8 switched half way to V9 /// I need a V9 Forum

    AspDotNetStorefrontML 9.0.1.3/9.0.1.3 AspDotNetStorefront ML 8.0.1.2/8.0.1.2