[wp-hackers] Taxonomy Schema Proposal
Jamie Talbot
wphackers at jamietalbot.com
Wed Apr 18 13:06:01 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matt Mullenweg wrote:
> Ryan Boren wrote:
>> "taxonomy" is a string that can be 'post-category', 'link-category',
>> or 'post-tag'. Plugins can add their own taxonomy types.
>
> How are URLs handled in this system?
We'll still have the category base and tag base, right? In which case, won't they just work as they
do now? anything site.tld/category/my_term/ would be queried as a post_category, anything
site.tld/tag/my_term/ would be queried as a post_tag. At least, that's how I understood Ryan's
suggestion.
> Is the mapping of object_id to either post_id or link_id based on the
> taxonomy type?
It would be cool if it was loosely coupled enough that we could map a term to whatever object in
whatever taxonomy we wanted. You'd probably say that the core functions would always add
link_category terms to links and post_category terms to posts, but we don't have to enforce this on
plugins. That way, a plugin could add my_future_taxonomy which was applicable to posts, pages,
links and attachments (or any combination of those). If a plugin has a good reason to add a
post_category term to a link, or a link_category to an attachment (though I'm not saying I can think
of one), then it should be allowed to.
Cheers,
Jamie.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGJhe4rovxfShShFARAkvRAJ9jviphp3wiWBuANroOYylwuPfibwCfZ39q
DYTwhfcjJAkcH4T/uvDZP+A=
=U1f2
-----END PGP SIGNATURE-----
More information about the wp-hackers
mailing list