Skip to content

Instantly share code, notes, and snippets.

@q0rban
Forked from anonymous/gist:4349374
Created December 20, 2012 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save q0rban/4349425 to your computer and use it in GitHub Desktop.
Save q0rban/4349425 to your computer and use it in GitHub Desktop.
<?
// So at the top of the node--article.tpl.php there's this
$view = 'related_bits';
$display = 'block';
$related_bits_block = views_embed_view($view, $display);
// Then down within the actual page markup stuff there's this
<?php if (isset($related_bits_block) && $related_bits_block): ?>
<article class="related-bits">
<h3>Related Bits</h3>
<?php print $related_bits_block; ?>
</article>
<?php endif; ?>
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment