Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
$get_key = $this->connection->query("SELECT * FROM tablekeys WHERE id IN ( SELECT MAX(id) FROM tablekeys WHERE key = 'System' GROUP BY ip) ORDER BY id DESC");
The problem i have is that i can not get any node data like $nid or the node object of the node the media file is beeing attached to.
It is a node with an entity reference(media) and i wanted to create a custom token using taxonmy terms of that node. But that is impossible if i can not get any node data to process.
I would need a small help to get the output by adding the for loop. I have a view which has a image field. And I would like to theme it, I have created two view templates called "views-view-list--image-article.html.twig" and "views-view-fields--image-article.html.twig"
I want to achieve the output in the below format. Here "wrap clearfix" div is repeating and the inner divs "lhs-img" and "rhs-img" are also repeating.