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

Thread: Link Products to Specific Topics

  1. #1
    jweigang is offline Junior Member
    Join Date
    Jun 2010
    Posts
    2

    Default Link Products to Specific Topics

    My application has a need to have multiple FAQ pages, 1 for each product, thankfully not that many products. Is there a way I can dynamically have the product reference a Topic in the XML package? This way I can have my FAQ button link below the product image instead of having to do it in the Product Description tab.

    Thanks
    Jeff

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

    Default

    Not 'out of the box', but with a little custom XML you could do that pretty easily. Either name the topics to match your product IDs (t-15 for product 15), or store the matching topic somewhere in the database and add a query to the beginning of the XML package to look up the right topic. Then you can do an xsl:choose to put in a link to the right topic.

  3. #3
    jweigang is offline Junior Member
    Join Date
    Jun 2010
    Posts
    2

    Post

    So lets say I have a product with ID = 12. I then created a new topic with a Topic Name of FAQ-12. How would I query that on the product.simpleproduct.xml.config to create a hyperlink for FAQ?

    I have this so far:
    <div>
    <a target="_blank">
    <xsl:attribute name="href">
    <xsl:value-of select="What goes here?" />
    </xsl:attribute>
    </a>
    </div>

    Thanks
    Jeff