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: How can I add the product name to the link title attribute?

  1. #1
    davidr@fromuthtennis.com is offline Junior Member
    Join Date
    Jul 2010
    Location
    Reading PA
    Posts
    2

    Default How can I add the product name to the link title attribute?

    I trying to add “$pName” which is the product title to the <a> link title attribute. Is this possible?

    <h2 class="productResultName">
    <a href="{aspdnsf:ProductandEntityLink(ProductID, SEName, $EntityID, $EntityName, 0)}" title="">
    <xsl:value-of select="$pName" disable-output-escaping="yes" />
    </a>
    </h2>

  2. #2
    mmcgeachy is offline Senior Member
    Join Date
    Sep 2008
    Posts
    174

    Default

    try this code

    C#/VB.NET Code:
    <h2 class="productResultName">
      <
    a href="{aspdnsf:ProductandEntityLink(ProductID, SEName, $EntityID$EntityName, 0)}" title="{$pName}">
           <
    xsl:value-of select="$pNamedisable-output-escaping="yes" />
      </
    a>
    </
    h2

  3. #3
    davidr@fromuthtennis.com is offline Junior Member
    Join Date
    Jul 2010
    Location
    Reading PA
    Posts
    2

    Default

    That worked.
    Thanks