Here is a patch for the whatsrelated.module to bring it up to 4.7 I need someone to look it over and see if it works for them. I have tested it on the 4.7 beta 4 release and it seems to work fine.

CommentFileSizeAuthor
whatsrelated_01.patch2.48 KBbryan kennedy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jwilde’s picture

Hi,

I added the patch to 4.7 beta 4 but it does not seem to work. I also used the example css to test but got errors.

* user warning: Unknown column 'node.body' in 'field list' query: SELECT node.title, node.nid, node.body, whatsrelated.relatedto, whatsrelated.linkaddress, whatsrelated.nid FROM node, whatsrelated WHERE whatsrelated.relatedto = '24' AND node.nid = whatsrelated.nid AND node.type = 'whatsrelated' ORDER BY whatsrelated.nid DESC, node.title ASC in /home/jwilde/public_html/includes/database.mysql.inc on line 124.
* user warning: Unknown column 'node.body' in 'field list' query: SELECT node.title, node.nid, node.body, whatsrelated.relatedto, whatsrelated.linkaddress, whatsrelated.nid FROM node, whatsrelated WHERE whatsrelated.relatedto = '1' AND node.nid = whatsrelated.nid AND node.type = 'whatsrelated' ORDER BY whatsrelated.nid DESC, node.title ASC in /home/jwilde/public_html/includes/database.mysql.inc on line 124.

I don't see anywhere to enter the link info on the create content, blog, page. The docs are short and give little advice.

Any ideas?

Thanks!

Jim

handelaar’s picture

Status: Needs review » Active

The patch won't work because of the node/node_revisions DB changes in 4.7.

This is an extremely simple module; you add new links by nid from node/add/whatsrelated and use the theme snippet in your node.tpl.php to display them.

This, I heartily agree, is not an ideal way of doing the job, but it's all the module currently does. I'm open to letting anyone who wants to make CVS changes or submit (working) patches to improve it, but it's not currently something I have a use for anymore.