Views usually tend to be output as pages, blocks, and other displays. In this recipe, we will be looking at taking this a step further, by manually embedding a View inside a node template using a smidgeon of code. To be more precise, we will be taking the backlinks View which comes with the Views module and embedding it inside a theme's node template file to provide a list of related content which links to the node currently being displayed.
Backlinks provide a list of nodes that link to the current node. For example, if in the content of
node/123, we include a link to
node/456, node/123 is considered to be a backlink of
As we are going to be embedding the backlinks View, it is assumed ...