Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sundip 76 posts 339 karma points
    Oct 31, 2012 @ 18:59
    sundip
    0

    Include ™ in menu or after company name

    Hi,

        The company I am working for has a trademark(TM) after each product name, I have to include (™) after each product in dropdown menu which is generated from XSLT, however if I put ™ inside textbox of page name property, it is not converting ™ to TM. Is there a way to provide trademark wherever that name repeats! Sometimes it converts to 'T' on the display. 

    Thank you for help.

    Sundip

  • Paul Blair 466 posts 731 karma points
    Oct 31, 2012 @ 21:45
    Paul Blair
    0

    Try includuing with disable-output-escaping your XSLT e.g.

    <xsl:value-of select="@nodeName" disable-output-escaping="yes"/>

    There are some risks with this though (Javascript injection) so it will depend on your customer whether this is acceptable.

    Another solution is to add a "Is Trade Mark" true/False property to each product. If it is true then append &trade; to the product name. You could also use some jQuery at this stage to add it to all mentions of the product name in other fields.

    If you want it added in general content through the text editor there is a "Insert Special Character" menu option (far right)

  • sundip 76 posts 339 karma points
    Nov 02, 2012 @ 13:40
    sundip
    0

    Hey Paul,

                  Appreciated, Insert special charactor 'TM' in rich text editor is being converted into 'T', I am not sure..Where can I add that 'Is trade mark property'! Sorry, I am new to this. 

    disable-output-escaping="yes" worked, I am almost there, thank you so much..

    one more thing if you have any idea that now the link is converted like pagenametrade.aspx. How would I get that name through xslt to put some filter. (Fixed  by node id)

    Thank you,

    Sundip

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies