We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Title, URL Title, and custom text area fields are not passing through the FieldFacade save and post_save methods

Developer Preview

Brian Litzinger's avatar
Brian Litzinger
693 posts
8 years ago
Brian Litzinger's avatar Brian Litzinger

As the title states, those fields appear to not be passing through those methods. I’m seeing data for the publish date, channel, and other entry meta data, but a custom text area field, title, and url_title are not utilizing those methods, thus they are not getting passed to the custom_field_modify_data hook. See the attached image. I step debugged it and can confirm I never saw the values for the mentioned fields pass through these save and post_save methods.

Edit: I think I see what is happening. If the ft.textarea.php or any other ft file does not have a post_save method then it doesn’t get called by the custom_field_modify_data hook?

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
8 years ago
Kevin Cupp's avatar Kevin Cupp

We try not to call save() on the fieldtype unless its data has changed, that’s probably what you’re seeing. Try changing the title and saving and see what happens.

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
8 years ago
Brian Litzinger's avatar Brian Litzinger

Ah, ok. That makes sense. I’ll give it a go when I get a chance.

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
8 years ago
Brian Litzinger's avatar Brian Litzinger

Indeed. They fire correctly if the value changes. Thanks for the help!

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
8 years ago
Kevin Cupp's avatar Kevin Cupp

Excellent, sure thing!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.