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: Hiding noimage.gif

  1. #1
    Skriver is offline Senior Member
    Join Date
    Apr 2012
    Posts
    188

    Default Hiding noimage.gif

    Hi

    Upgrading to 9.3 and noticed that on our category pages there is a large noimage.gif frame for those categories that have no image. Any idea how to hide this for those that have no image but show it for those who do?

    Looked in app configs but cannot find anything

    This line within the xml package runs it

    <xsl:variable name="CatImage"><xsl:value-of select="aspdnsf:ImageUrl($EntityID, $EntityName, 'large', 0)" disable-output-escaping="yes"/></xsl:variable>

    If I change the disable-output-escaping="yes"/> to disable-output-escaping="no"/> it shows a lot of static code.

    Anyone managed this in 9.3?

  2. #2
    GoVedia is offline Member
    Join Date
    Oct 2012
    Location
    Orange, CA
    Posts
    98

    Default XSLT Contains

    @Skriver,

    There are several potential solutions. One way to go about it, is to check if the Image URL being sent back, contains nopicture.gif. If it does, then do not display the image. This should only require a few additional lines of code to accomplish. Mainly using XSLT contains and choose functions.

    Sincerely,
    Robert
    Robert Kanaan
    AspDotNetStorefront Development Partner
    robert@GoVedia.com
    408-758-8845

    GoVedia
    http://GoVedia.com
    Approved AspDotNetStorefront Development Partner
    AspDotNetStorefront Recommended Reseller