[wp-hackers] Link metadata?
Mike Schinkel
mikeschinkel at newclarity.net
Mon Jun 15 17:30:45 GMT 2009
Malaiac:
Thanks for the pointer to zeList. Are you going to test/update it for use with v2.8?
When I started writing my email I had been planning to add an option #3, a link_meta field. After completing the email I had changed my mind and decided a wp_linkmeta table a.k.a. option #2 would probably be the best. Thanks for confirming my decision to use a wp_linkmeta table, that is assuming I don't end up using zeList directly.
-Mike Schinkel
Custom Wordpress Plugins
http://mikeschinkel.com/custom-wordpress-plugins
----- Original Message -----
From: "Malaiac" <malaiac at gmail.com>
To: wp-hackers at lists.automattic.com
Sent: Monday, June 15, 2009 4:09:59 AM GMT -05:00 US/Canada Eastern
Subject: Re: [wp-hackers] Link metadata?
2009/6/15 Mike Schinkel <mikeschinkel at newclarity.net>:
> I'm pondering an architectural decision and wanted to run it by the hackers.
>
> I'm building a plugin to provide "Post Links", i.e. "Links associated with a given Post." I've got a site where I'm using posts in ways
You should check zeList plugin
http://wordpress.org/extend/plugins/zelist/ which includes some of the
things you're looking for.
For link extended fields, I strongly recommend the creation of a
link_meta table (aka option 2), and duplication of post_meta
functions, for two reasons :
- adding the table and copying the functions takes 30mn top.
- if and when WP decides to switch to a taxonomy-neutral meta table it
will be easier to switch from a "roughly similar to postmeta "
architecture than from a custom hack.
In zeList, just check zelist/includes/metas.php for the functions and
zelist/zelist.php (function zelist_install) for the database creation.
You may need to work on the Link Edit Page to add custom metas fields,
since I did not add these.
As for link related to posts, it can be done manually, or automatically.
Check http://cadeaux.laporterie.com/camping/18-acheter-une-caravane.htm
(check "Liens connexes") for an example of zeList in action. The
function is "related_links()" in
zelist/includes/template-functions.php
For the description/title/images parsing, check
http://www.screentoaster.com/watch/stUkJcQ0VIR11cSFtaXFJfVFRS/zelist_submit_page
it includes a zelist plugin (zelist-submitter), not released yet,
using the zeList API.
Let me know if some of that is helping you !
Malaiac
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list