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.

EE 1.7.1 - LG or MCFileManager adding <p> tags to custom field content

May 17, 2011 11:16am

Subscribe [1]
  • #1 / May 17, 2011 11:16am

    Nick Hayward

    9 posts

    Hi,

    I have a new 1.7.1 site in progress with the following extras installed:

    Extensions
      LG FileManager
      LG ImageManager
      LG Add Sitename
      LG Member Form Customiser
      Fieldframe

    Modules
      Wygwam
      CartThrob
      Solspace Calendar

    My first problem is that the LGFileManager field type or the MCFileManager plugin seems to be adding paragraph tags around the file path when it’s output to the template. I am currently using HTML_Strip to remove the tags but would like it to work properly if possible. Has anyone else experienced this?

    There is a second problem which is also confusing me - the first file URL in a list of weblog:entries also has a line break (
    ) appended to it! Changing the fieldtype back to text with no formatting and typing the file URL in manually seems to fix the issue.

    Thanks in advance 😊
    Nick

  • #2 / May 27, 2011 10:31am

    Nick Hayward

    9 posts

    Fixed this with help from this thread: http://ellislab.com/forums/viewthread/96291/P18/

    Thanks guys! It seems it was due to the LGImageManager plugin setting the fieldtype to ‘NULL’ instead of ‘none’ for the custom field.

    Adding this to the LGImageManager code around line 306 fixed my issue:

    $r .= $DSP->input_hidden('field_ft_'.$row['field_id'],$row['field_fmt']);

    Nick :D

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

ExpressionEngine News!

#eecms, #events, #releases