ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE2 Matrix text field output unnecessarily converting to HTML

April 01, 2011 12:01am

Subscribe [3]
  • #1 / Apr 01, 2011 12:01am

    David Lawrence

    41 posts

    I’m having a strange problem with the output of a matrix text field going from 1.7.0 to 2.1.3

    Here’s my template code snippet:

    {blog_roll}
    <li><a href="http://{site_url}">{site_name}</a></li>
    {/blog_roll}

    in 1.7.0 it outputs:

    <li><a href="http://blog.sfmoma.org/">SFMOMA Open Space</a></li>

    In 2.1.3 the same template referencing the same data outputs:

    <li><a href="http://a">http://blog.sfmoma.org/</a>">SFMOMA Open Space</a></li>

    Why is matrix wrapping my URL text with HTML in 2.1.3? Is there a setting somewhere I’m missing?

    Any help much appreciated!

  • #2 / Apr 01, 2011 9:24am

    Neil Evans

    1403 posts

    Which version of Matrix are you using, has it been upgraded as well for 2.1.3?
    In short it looks like the old “automatically turn my URL’s to links setting”, but that does not really make sense for this field type, but check your channel settings.

    If not i would suggest speaking to Brandon/Pixel and Tonic and see if they have had similar reports.

  • #3 / Apr 01, 2011 12:08pm

    Sue Crocker

    26054 posts

    Thanks for the assist, nevsie.

    David, if this were just a textarea field, I’d check to make sure the channel isn’t automagically converting the URLs to links. If that doesn’t fix the problem, then it’s time to ask Brandon. Does that make sense?

  • #4 / Apr 01, 2011 2:34pm

    David Lawrence

    41 posts

    Thanks Nevsie and Sue, yep it was the channel posting preferences setting. From Brandon:

    Go to Admin > Content Administration > Channels > [channel name] Edit Preferences > Channel Posting Preferences, and change the “Automatically turn URLs and email addresses into links?” setting to ‘No’.

    That did the trick!

  • #5 / Apr 05, 2011 10:58am

    Sue Crocker

    26054 posts

    Glad things are working again.. Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases