Copied to clipboard

Flag this post as spam?

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


  • RolandWolters 32 posts 32 karma points
    Oct 28, 2009 @ 16:14
    RolandWolters
    0

    Smiley's in weblog article

    In a weblog article i want to be able to type a smiley like this :) and have it replaced by an image when it is show on the website. But also I want to be able to write a tag like this [tag1] in de text and have [tag1] replaced by a value, dynamic.

    Can I replace text on render? In a .net control? Or is there a better method for this.

  • dandrayne 1138 posts 2262 karma points
    Oct 28, 2009 @ 16:22
    dandrayne
    0

    If in xslt, you could perhaps use the old umbraco.library:Replace()

    <xsl:value-of select="umbraco.library:Replace($content, ':-)', 'Whatever')"/>

    Of course "Whatever" could be a variable passed in to the replace method as well as hard-coded

    Dan

  • 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