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 2 of 2

Thread: Use medium image in categories without the multi-image

  1. #1
    TimMapes is offline Junior Member
    Join Date
    Feb 2009
    Posts
    12

    Default Use medium image in categories without the multi-image

    Can anyone show me how I can use a medium image instead of a icon on a category page without displaying the multi-images associated with it.
    First I want the multi-images on the items page so no I cannot disable that.

    This works for the icon image:
    <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFileNameOverride, SKU, 'icon', 1, $AltText)" disable-output-escaping="yes"/>

    This displays the same with a medium image but also displays the multi-images at the bottom of the cell:
    <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFileNameOverride, SKU, 'medium', 1, $AltText)" disable-output-escaping="yes"/>

    Tim

  2. #2
    TimMapes is offline Junior Member
    Join Date
    Feb 2009
    Posts
    12

    Default Solved

    As usual I work it out right after giving up and posting... LOL

    I just grabbed the url and used a plain image in the xml.

    OLD:
    <p class="productResultImage">
    <a href="{aspdnsf:ProductandEntityLink(ProductID, SEName, $EntityID, $EntityName, 0)}">
    <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFilenameOverride, SKU, 'icon', 1, $AltText)" disable-output-escaping="yes" />
    </a>
    </p>

    NEW:
    <p class="productResultImage">
    <a href="{aspdnsf:ProductandEntityLink(ProductID, SEName, $EntityID, $EntityName, 0)}">
    <img>
    <xsl:attribute name="src">
    <xsl:value-of select="aspdnsf:ProductImageUrl(ProductID, ImageFileNameOverride, SKU, 'medium', 1)" disable-output-escaping="yes"/>
    </xsl:attribute>
    </img>
    </a>
    </p>