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).
