I am a newbie to Drupal. I have a custom content type blog_post, with some custom fields, like subtitle.
I have the following two divs, which I want to render for this blog_post like that:
+--------------+--------------------------------+
| 9 Sept 2013 | Good weather on the West coast |
| 2013 | (title) |
| (date) | Winds are blowing hard in NY |
| | (subtitle) |
| | According to the Department... |
| | (content) |
+ -------------+--------------------------------+
My solution: amend node.tpl.php like that:
<aside>
<?php print $date; ?>
</aside>
<article>
<a href="<?php print $node_url;?>">
<?php print $title; ?><br />
<?php print $subtitle; ?>
</a>
<?php print render($content); ?>
</article>
How do I pull $subtitle from the database? Best way I found so far, looks somewhat ugly:
<?php
print $field_subtitle[LANGUAGE_NONE][0]['value'];
?>