Copied to clipboard

Flag this post as spam?

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


  • Marc Love (uSkinned.net) 447 posts 1789 karma points
    Jun 14, 2010 @ 16:49
    Marc Love (uSkinned.net)
    0

    Detect and output linebreak in textarea

    How do you detect a line break in a 'textbox multiple' datatype and output this as <br/> using XSLT?

    Cheers

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jun 14, 2010 @ 17:09
    Matt Brailsford
    3

    Give this a try

    <xsl:value-of select="umbraco.library:ReplaceLineBreaks(data[@alias='bodyText'])" disable-output-escaping="yes" />

    Changing bodyText to the name of your property alias.

    Matt

  • Marc Love (uSkinned.net) 447 posts 1789 karma points
    Jun 14, 2010 @ 17:14
    Marc Love (uSkinned.net)
    0

    Perfect. Cheers!

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jun 14, 2010 @ 17:24
    Matt Brailsford
    0

    No problem

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft