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.

Custom Fields Formatting broken

May 07, 2009 5:05pm

Subscribe [4]
  • #1 / May 07, 2009 5:05pm

    This question may be related to a resolved thread.

    I have a custom field that has Default Text Formatting for This Field set to NONE, however whenever I add a new entry, the field is getting tags added. If I update the entry without changing anything, the formatting is fixed and I no longer get the tags in the output. What could be going wrong here?

  • #2 / May 07, 2009 5:07pm

    Ingmar

    29245 posts

    No tags are actually added to the field in the db, they are only added at runtime in the template. That said, when you create a new article, is the formatting indeed set to “None”? Also, what version and build of EE are you on?

  • #3 / May 07, 2009 5:36pm

    Correct, the formatting is set to NONE in the CP, version 1.6.7. If the tags are output at runtime, how come older posts are correct? i created a page listing a new post with older posts below…
    http://jonesgaba.ricochetpartners.net/index.php/fun/test. You can see that the older posts are not getting the p tags appended in the “Focus on…” title.

    Additionally, I checked the exp_weblog_fields to verify that it is stored properly there. The field is definately set to “none”

  • #4 / May 07, 2009 5:53pm

    Ingmar

    29245 posts

    Here’s one thing you can try: go to CP > Admin > Weblog Administration > Field Groups > Add/Edit Custom Fields. Then change the Default Text Formatting for This Field to something other than None, then back again. Be sure to check the box “Update all existing weblog entries with your new formatting choice?”

  • #5 / May 07, 2009 5:55pm

    I have done that actually. I fixes all existing entries but additional entries aren’t correct. How does EE determine the formatting output for a field?

  • #6 / May 07, 2009 6:01pm

    Ingmar

    29245 posts

    Are you using any extensions? The formatting is determined by ‘field_ft_nn’ in exp_weblog_data, where nn is the field_id. The formatting of ‘field_id_2’ would be determined by field_ft_2. Try submitting a new article, than take a look at the database and see if it’s “none” as expected.

  • #7 / May 07, 2009 6:09pm

    Ok, I think we are getting somewhere. I am using the exp:logmein plugin on this page so that the posts can be added “anonymously” via SAEF. I notice that when I added a new post from the SAEF, the value of the field_ft_xx is null but when I add from the CP the value is “none”.

  • #8 / May 07, 2009 6:17pm

    Sue Crocker

    26054 posts

    Christopher, see if this article helps.

  • #9 / May 07, 2009 6:34pm

    Sue, thank you, that really helped. Its a bit cludgey but I ended up following the advice in this post and just manually added

    <input type="hidden" name="field_ft_xx" value="none">

    to the end of my form and viola, getting the correct values in the db now 😊

  • #10 / May 08, 2009 2:20am

    John Henry Donovan

    12339 posts

    Glad you got it sorted Christopher. 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