Custom Field Gotchas

Consider this a public service announcement to anyone debating about using Movable Type Custom Fields for a site:

1. You cannot create system level asset custom fields. This precludes sharing asset fields across larger blog networks where global templates are used.

2. There are no formatting options for editing Custom Fields. If you’re using Custom Fields for your primary entry data (i.e. no entry body, only custom field data), be aware that they have no formatting options for the editor—it’s just an input field. You can get around this with my PlasticField plugin, but it’s not the best solution because it requires you to create a new field, doesn’t use the default editor, and doesn’t support installed format types like Markdown or Textile.

3. You cannot sort by Custom Fields despite the note about the “sort_by” attribute (below the basename) on the Create Field screen.

4. Date-based Custom Fields don’t honor the format argument. They spit out one format alone making them virtually unusable for creating neat things like iCal files (which require UTC date formatting). And a related problem: You can no longer specify a time-only field or a date-only field in 4.2.

5. When cloning a blog, Custom Field data is lost (though this seems to be fixed for the next release).

Please feel free to let me know if I’ve missed anything.

  • posted on 2 September 2008
  • by Jesse

InterAction:

2 September 20081. Maarten Schenk:

Funny, I just submitted a bug report about #4 not five hours ago :-)

2 September 20082. Maarten Schenk:

Oh, shoot, seems like they already fixed the bug a few days ago :-)
http://bugs.movabletype.org/default.asp?pgx=EV&ixBug=81514&=#413475

2 September 20083. Jesse Gardner:

Thanks for the feedback, Maarten!

I should also point out that Gautam Patel has a temporary fix up on the wiki for this release (4.2).

3 September 20084. Maarten Schenk:

One more thing: I got sorting by custom fields to work on a very little test set of data (three entries), so I can't claim to have done any 'deep' testing. But one thing I did notice is that you have to use just the basename, not the full 'tag' name of the field. So

sort_by="field:foobar"

not

sort_by="field:entrydatafoobar"

Don't know if this was the problem in your case, if it wasn't, please send me some details and I'll bugreport it :-)


YourThoughts?



(Minutia)

GetUpdated

ElseWhere

Find me on aim Find me on delicious Find me on digg Find me on linkedin Find me on pownce Find me on twitter Find me on youtube Find me on skype Find me on facebook Find me on livejournal Find me on msn Find me on vox Find me on technorati Find me on yahoo Find me on dopplr Find me on lastfm

ActionStream

  • Jesse bookmarked Adobe - Developer Center : Google Analytics for simplified tracking of rich media websites Jesse bookmarked Adobe - Developer Center : Google Analytics for simplified tracking of rich media websites 1970-01-01T00:00:00Z 2009-01-06T04:29:29Z
  • Jesse said, "This explains why all the sites that used to copy stuff to my clipboard stopped when I upgraded to Flash 10: http://is.gd/3gRi" Jesse said, “This explains why all the sites that used to copy stuff to my clipboard stopped when I upgraded to Flash 10: http://is.gd/3gRi” 2009-01-06T04:27:05Z 2009-01-06T04:27:05Z
  • Jesse said, "Flash 10 allows tab, spacebar, and the arrow keys in fullscreen mode. How very not helpful." Jesse said, “Flash 10 allows tab, spacebar, and the arrow keys in fullscreen mode. How very not helpful.” 2009-01-06T04:21:54Z 2009-01-06T04:21:54Z
  • Jesse said, "Requiring user initiation (click or keystroke) seems like enough protection against phishing, no?" Jesse said, “Requiring user initiation (click or keystroke) seems like enough protection against phishing, no?” 2009-01-06T04:13:17Z 2009-01-06T04:13:17Z
  • Jesse said, "Is there _no_ way to allow text input during Flash fullscreen mode?" Jesse said, “Is there _no_ way to allow text input during Flash fullscreen mode?” 2009-01-06T04:07:53Z 2009-01-06T04:07:53Z