Created
December 20, 2012 22:59
-
-
Save anonymous/4349374 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// 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