Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
whatsrelated_01.patch | 2.48 KB | bryan kennedy |
Comments
Comment #1
jwilde CreditAttribution: jwilde commentedHi,
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
Comment #2
handelaar CreditAttribution: handelaar commentedThe 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.