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

How to set formatting (not == NULL)..

Development and Programming

gridonic's avatar
gridonic
231 posts
16 years ago
gridonic's avatar gridonic

I just tested this with URL field extension

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

and can confirm that it works fine.

It seems that upon creation of a custom field, the formatting definition works fine and gets stores in the database (the value form the drop down). It’s just being ignores upon entry creation without the hidden format value.

This does not solve your problem Ryan, but it sure solved the problem of custom fields having no formatting set after 1.6.5 upgrade.

However, you still need to make sure that the formatting is being set in the first place through the hook

publish_admin_edit_field_extra_row

otherwise you’ll get this error, as the format will default to NULL

Description: Unknown column ‘field_ft_7’ in ‘field list’

EDIT: It seems that you don’t need the formatting drop-down when creating a custom field. Without it, it should default to ‘none’.

       
1 2 3

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.