|
View:
New views
15 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
|
|
|
Re: Link metadata?A while ago I proposed a comments_meta table[1], and at WordCamp I was introduced to bbPress' meta table architecture: rather than have meta tables for different types of content, there's just one meta table that includes an extra column describing what content type the ID links to. The implication for the WP world was that an additional column in the postmeta table could extend it to serve links and comments (and if we're bold, replace usermeta). Our purposes are different, but having a standardized place and set of functions to store metadata about things other than posts would deliver obvious value to both of us. [1]: http://comox.textdrive.com/pipermail/wp-hackers/2009-May/026343.html All of that said, have you considered adding these links as posts? Putting content in the posts table gets you free tools to add tags and other metadata, makes the content easier to search (no need for plugins that scatter the searching to all those other tables), and allows you to open up the links to comments and other social activity. You'd have to do the hard work of making the links work well as posts, but everything else comes free after that (rather than having to continually hack the link system to accommodate the interactions you'd like to see). But that's not as hard as it might appear -- I did it with photos and library records[2] and released the plugin[3]. [2]: see http://archives.colby-sawyer.edu/archives/2552/ and http://collingswoodlib.org/library/12023/ [3]: http://about.scriblio.net/ --Casey Bisson http://maisonbisson.com/ On Jun 15, 2009, at 2:28 AM, Mike Schinkel wrote: > The problem arises in that there are not any fields in wp_links > where I can store anything to tell me which links have had their > screenshot generated, their title and description downloaded, nor > their titles and descriptions manually reviewed and edited > (excepting the "notes" field which IMO is not a viable candidate.) > Posts have wp_postmeta and Users has wp_usermeta but there is no > wp_linkmeta for Links. My usecase needs some metadata for workflow > but I'm sure there are many other uses for link metadata as well. > > So here are the solutions I've considered: > > 1.) Storing everything in a 'links_workflow' option as a serialized > array (this just doesn't feel right.) > 2.) Creating a wp_linksmeta table and hoping that if WordPress ever > adds it they add it like what I've added (Don't want to add a table > but would be cleanest for SQL.) > 3.) Adding a "link_meta" field to the wp_links table and storing > serialized array data for each link (This is okay, but can't do a > performant SQL query against.) _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
|
|
|
Re: Link metadata?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@...> To: wp-hackers@... 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@...>: > 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@... http://lists.automattic.com/mailman/listinfo/wp-hackers _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
Re: Link metadata?2009/6/15 Casey Bisson <casey.bisson@...>:
> [1]: http://comox.textdrive.com/pipermail/wp-hackers/2009-May/026343.html > All of that said, have you considered adding these links as posts? Putting > content in the posts table gets you free tools to add tags and other > metadata, makes the content easier to search (no need for plugins that > scatter the searching to all those other tables), and allows you to open up > the links to comments and other social activity. He'll just have to recode the whole post (link) categories taxonomy. Been there. Never doing that again. Beyond that, I agree with the much needed central meta table. Malaiac _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
|
|
|
Re: Link metadata?Casey Bisson wrote:
> > A while ago I proposed a comments_meta table[1], and at WordCamp I was > introduced to bbPress' meta table architecture: rather than have meta > tables for different types of content, there's just one meta table > that includes an extra column describing what content type the ID > links to. Ahhh, I had forgotten about that. That's a good suggestion. I've also pondered the lack of link- and comment- meta, and a unified metadata table, indexed by content type would be a good evolution, I think. It would also aid in the future migration towards more generic CMS capabilities in core WP, since it would be extensible for future data types. > All of that said, have you considered adding these links as posts? > Putting content in the posts table gets you free tools to add tags and > other metadata, makes the content easier to search (no need for > plugins that scatter the searching to all those other tables), and > allows you to open up the links to comments and other social activity. That's what I was about to suggest, too (I think). Or more specifically, I was going to suggest either adding metadata to the main post, with info about the child links (could connect by linkid), or even by using a child-post (more technically, an attachment) to house the extra data. This isn't as elegant as attaching the metadata directly to the links in some way, but is pragmatic in that it shouldn't be too hard to implement. Done right, you could even reference the same link (by its link ID) from different posts, but using different link metadata in each instance. I could probably think of some insteresting use-cases for that. -- Dougal Campbell <dougal@...> http://dougal.gunters.org/ http://twitter.com/dougal http://twitual.com/ _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Link metadata?On Jun 23, 2009, at 7:57 AM, scribu wrote:
> There doens't seem to be any agreement on the matter yet. Next step? Discuss it here? There? On which ticket? Thanks in advance. -Mike Schinkel WordPress Custom Plugins http://mikeschinkel.com/custom-wordpress-plugins/ _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
|
|
|
|
|
Re: Link metadata?The discussion on trac said a single meta table would be too abstract
and create indexes that were too large and thus too slow. So I suggested keeping wp_postmeta and wp_usermeta and adding a more generic table called wp_othermeta for comments, links, or whatever. Discussion here: http://core.trac.wordpress.org/ticket/5183 -Mike Schinkel WordPress Custom Plugins http://mikeschinkel.com/custom-wordpress-plugins/ On Jun 23, 2009, at 12:43 PM, scribu wrote: > The main ticket seems to be http://core.trac.wordpress.org/ticket/5183 > > I think it's better to discuss it there since it won't get lost as > easily as > previous discussions on wp-hackers. Also, it has better formatting. > > -- > http://scribu.net > _______________________________________________ > wp-hackers mailing list > wp-hackers@... > http://lists.automattic.com/mailman/listinfo/wp-hackers _______________________________________________ wp-hackers mailing list wp-hackers@... http://lists.automattic.com/mailman/listinfo/wp-hackers |
| Free embeddable forum powered by Nabble | Forum Help |