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) 349 posts 946 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 2958 posts 15629 karma points MVP 7x 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) 349 posts 946 karma points
    Jun 14, 2010 @ 17:14
    Marc Love (uSkinned.net)
    0

    Perfect. Cheers!

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x 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