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.

Text Input Field Type is adding <p> to my entries

June 14, 2012 6:01pm

Subscribe [5]
  • #1 / Jun 14, 2012 6:01pm

    This question may be related to a resolved thread.

    I have transitioned from our site from EE1.7.1 to 2.5.2.  All of our existing entries on the website are showing up fine, so I know it is not a template issue.  When adding new entries, I am having problems with audio/video link fields coming out with tagged to the ends.  Cannot figure out why. 

    The text being entered into the field is only a URL:

    <a href="http://www.riverlakeschurch.org/files/sermons/2012-05-27.mp4">http://www.riverlakeschurch.org/files/sermons/2012-05-27.mp4</a>

    But when {video-url} is displayed on the site, it comes out as

    <a href="http://www.riverlakeschurch.org/files/sermons/2012-05-27.mp4">http://www.riverlakeschurch.org/files/sermons/2012-05-27.mp4</a>

    This doesn’t work to try and create links, open up the video files in a Lightbox window, etc.

     

     

  • #2 / Jun 14, 2012 6:07pm

    Patrick Hvid

    62 posts

    Do you enter the links inside the entry or in a separate field?
    If in a separate field you need to set formatting to “none”
    If in an entry I guess the editor you use have some kind of “embed url” or “inset movie” feature.

    /patrick

  • #3 / Jun 14, 2012 6:21pm

    Thanks for the quick reply.  There is a unique field for audio and video links, separate from all other fields for these entries.  The formatting is set to none, override is not allowed.

  • #4 / Jun 14, 2012 6:32pm

    Thought it would help to add some more detail…...and just to reaffirm, this is only a problem with NEW entries.  There is NO problem with existing entries from before I update EE.

    Here is the template code:

    
    
    

    Here is the result:

    <li class="listen"><a >http://www.riverlakeschurch.org/files/sermons/audio/2012_The Good Life/2012-06-03.mp3" title="Listen to MP3 Audio">Listen</a></li>       
    <li class="watch"><a >http://www.riverlakeschurch.org/files/sermons/video/2012_The Good Life/2012-03-06.mp4'})" title="Watch MPEG Video">Watch</a></li>

    Here is a screen shot of my channel field setup:

  • #5 / Jun 14, 2012 6:32pm

    Patrick Hvid

    62 posts

    If I remember correctly I also needed to turn off the feature “Automatically turn URLs and email addresses into links?” for the channel in question
    Found under “Edit Preferences”-“Channel Posting Preferences”

    /p

  • #6 / Jun 14, 2012 6:34pm

    Yes, I already did that.  Otherwords it would be turning my URL’s into links, which is not the problem I’m having.  I’m getting unwanted tags.

    I learned my lesson with that last time 😊

  • #7 / Jun 14, 2012 6:40pm

    Patrick Hvid

    62 posts

    Strange

    I have the exact same thing on my site (working 2.5.0)

  • #8 / Jun 14, 2012 6:54pm

    Patrick Hvid

    62 posts

    I did some testing on the my test-site (running 2.5.2) and there’s no problem at all.

    Created a channel called “misc”
    Created a custom field called “playlist”
    Did the above settings
    Created an entry titled “Link to the thread” with the url to this thread in the custom field

    Entered the following code on my site

    {exp:channel:entries channel="misc" orderby="date" sort="desc" limit="1" }
    <a href="http://{playlist}" target="_blank" rel="noopener">{title}</a>
    {/exp:channel:entries}

    voila

     

  • #9 / Jun 14, 2012 7:00pm

    ok, thanks.  doesn’t really help me a whole lot.  i can’t delete the channel and start fresh.  i’ve got years worth of data entries pre-existing.  no choice but to find the bug with the current setup and fix it.

  • #10 / Jun 14, 2012 7:08pm

    Patrick Hvid

    62 posts

    Sorry about that, I hope the guys from EE can do better..
    There’s always the low_replace module to rip out the formatting, but that’s more of a workaround than a solution…

    /patrick

  • #11 / Jun 14, 2012 7:39pm

    No problem.  Appreciate your input.  I am using low_replace as a patch, because I cannot leave the page non-functional.  Really hoping the EE folks can provide some help though.

  • #12 / Jun 15, 2012 8:55am

    jonathanmelville

    132 posts

    When you look at the options for this particular field, what is the option set for Default Text Formatting?

  • #13 / Jun 15, 2012 10:15am

    The Default Text Formatting is set to none, and override is disabled.  I attached a screen shot that shows all of the settings in a post above.

  • #14 / Jun 15, 2012 8:36pm

    Any help from EE available?  This is the only way I can see from the website to request support.

  • #15 / Jun 16, 2012 8:25am

    Rob Allen

    3114 posts

    When you set the field formatting to “none” did you go and re-edit the entry and save it (no need to change anything)?

    If not, do that, then clear out your EE cache so your front end templates are recached with the new version.

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

ExpressionEngine News!

#eecms, #events, #releases