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

Thread: Display large category image in category XmlPackage

  1. #1
    jeskey is offline Junior Member
    Join Date
    Oct 2006
    Posts
    25

    Default Display large category image in category XmlPackage

    I want to be able to display the large category image in my category XmlPackage. Just the image - no links or other information. I really just need the name to place in an IMG tag.

    Does anyone know how to accomplish this?

    Any help would be greatly appreciated.
    Last edited by jeskey; 10-14-2010 at 10:30 AM.

  2. #2
    witzeek is offline Junior Member
    Join Date
    Oct 2010
    Posts
    3

    Default It depends

    It depends how you want your problem to be get solved.

    If category images are placed in standard folders as used by package, just use the categoryid available in xml package to create the image path.

    Or you can create a function in XSLTEXTENSIONBASE.cs class that further calls (AppLogic.LookupImage) to fetch the image path for that category.

    Hope this helps,

    Rohit
    witzeek@gmail.com

  3. #3
    jeskey is offline Junior Member
    Join Date
    Oct 2006
    Posts
    25

    Default I tried this.

    I used this expecting to get the image:
    Code:
    ...
    <queryparam paramname="@CatID" paramtype="runtime"  requestparamname="CatID"  sqlDataType="int"     defvalue="0"  validationpattern="" />
    ...
    ...
    ...
    
    <div align="left"><img border="0" src="/images/category/medium/{CatID}.jpg"></img></div>
    -- and --
    <div align="left"><img border="0" src="/images/category/medium/{categoryID}.jpg"></img></div>
    but it returns an empty string. I used this code in another .config template for products and it worked as expected.

  4. #4
    witzeek is offline Junior Member
    Join Date
    Oct 2010
    Posts
    3

    Default Let me see the code

    Hi there,

    Let's connect directly for a more seamless discussion about your problem.
    You can drop me a mail at witzeek@gmail.com


    Regards,
    Rohit
    witzeek@gmail.com