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 1790 karma points MVP
    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 22224 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 1790 karma points MVP
    Jun 14, 2010 @ 17:14
    Marc Love (uSkinned.net)
    0

    Perfect. Cheers!

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

    No problem

    Matt

  • 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