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.
Unless I'm missing something I don't see a way to easily discover nodes for which a given node is a related content.
In the full page view of an article, I would like to put links back to the Newsletter(s) where this article was a related content.
How do I do that?
Comments
Comment #1
jpdaut CreditAttribution: jpdaut commentedThis does it:
$newsletter_id = db_result(db_query("SELECT nid FROM {relatedcontent} WHERE include_nid = %d", $node->nid));