So on my Blog listing page, the first listing is "featured" meaning it spans two columns rather than one, I've achieved most of my styling changes by adding CSS class feature to $vars['id'] == 1
for the blog page.
However, the image for first teaser is a different proportions and therefore uses custom field header image rather than custom field thumbnail image. In the following:
function innovista_preprocess_node(&$vars) {
if ($vars['id'] == 1 && arg(0) == 'blog') {
$vars['classes_array'][] = 'feature';
//do stuff to switch field here?
}
}
I want to add a command to switch render of $content['field_blog_thumbnail_image']
with render of $content['field_blog_header_image']
. How can I go about this?
Thanks for your time!