I have a Drupal website with a content type (Article) which has a taxonomy term reference field (Topic) for the Topics vocabulary.
The Article path aliases, based on the taxonomy term are, for example, the following one.
- /books/100-days-around-the-world
- /culture/chinese-and-medicine
The content type has also an image field (Image). I want to style the main image for the articles classified under books differently; I want the image to have greater height than width.
The only way I could think to achieve that is creating a new view for it. I tried to create it, but it only rendered the first article of books. The following screenshot shows the view settings.
The real problem is that I don't know a view that renders the article content page. When I contacted the theme author], for previous modification requests, I was told to use the node--article.tpl.php template file. So I have only two ways:
- Create a view that renders articles as I described earlier
- Write code in the node--article.tpl.php template file that conditionally set a style for the image field when the article topic term is books
I don't know how to get what I need using the two approaches.