I have a view which displays products. The fields shown are altered via hook, and I want to add <div>
and <h3>
, when I find an appropriate field value. (I tried with adding style to the field in the UI, but the logic is somehow convoluted, so I would need to hard-code it.)
I need to encapsulate a complete row inside a <div>
when some field has some value. I have tried with views-view-fields.tpl.php and views-view-unformatted.tpl.php, but they seem not to “talk to each other”, so I am failing miserably. Maybe should I approach by using views_view_result()
and building the HTML myself?