Multiword Tags

| No TrackBacks

How does Movable Type handle multiword tags?

It's easy to add a multiword tag--you don't even need quotes. Tags are separated by commas.

In the database the tag is stored in mt_tag table. The tag_name field stores the human-readable label.

The mt_entry table joins to the mt_tag table via mt_objecttag:

  • mt_entry.entry_id is mt_objecttag.objecttag_object_id
  • mt_tag.tag_id is mt_objecttag.objecttag_tag_id

Adding a multiword tag actually adds 2 entries to the mt_tag table:

  • A "normalized" entry that removes spaces and special characters and lowercases the string
  • The regular version, which references the normalized version in the tag_n8d_id field.

More you should know about tags:

  • Tags can be associated with assets, pages, or entries. A tag associated with one is not available to be applied to the others; an identical tag must be created.
  • Tags must be associated with one of those 3 items. You cannot prepopulate tags for a given blog (as far as I can tell).

No TrackBacks

TrackBack URL: http://osric.org/cgi-bin/mt/mt-tb.cgi/17

About this Entry

This page contains a single entry by Chris Herdt published on January 25, 2010 12:11 PM.

ImageMagick and PerlMagick was the previous entry in this blog.

Alt and title attributes on images in Movable Type is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.